简体   繁体   English

如何在 Power BI 中将同一列的两个值相乘?

[英]How to multiply two values of a same column in Power BI?

I want to multiply two different values of the same column.我想将同一列的两个不同值相乘。

Example:例子:

Name  Values
A     10
B     5
C     2

I want to multiply values where Name = A and B. The result should be 50. How can I do that?我想将名称 = A 和 B 的值相乘。结果应该是 50。我该怎么做?

I used some multiply functions but they're not working.我使用了一些乘法函数,但它们不起作用。

If your table is named "Table", then create a simple measure as follows and place it in a card:如果您的表名为“表”,则按如下方式创建一个简单的度量并将其放在卡片中:

Measure = CALCULATE( MAX('Table'[Values]),'Table'[Name] = "A") *  CALCULATE( MAX('Table'[Values]),'Table'[Name] = "B")

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将两列与多对多关系乘以幂 bi - multiply two column with many to many relationship in power bi 如何使用 Power Bi 中的 Power Query 编辑器从两列的不同值的选择中创建新列 - How to create a new column from the select of the distinct values of two columns with Power Query Editor in Power Bi Power BI - 我如何将两个表中的两列 append 合并为具有不同值的一列 - Power BI - How do I append two columns from two tables into one column with distinct values 如何从同一列中获取两个日期之间的增量? 商业智能 - How to get the delta between two date from the same column ? Power BI 在矩阵中创建列,该列是Power BI中其他两个列的值的比率 - Create column in matrix that is a ratio of the values of two other columns in Power BI Power Bi - 两列日期 - Power Bi - two column dates Power BI:乘以两个值之间的每个点。 (计算曲线) - Power BI: Multiply by each point between two values. (Calculate Curve) 如何显示与 Power Bi Dax 具有两个以上 Column Row 值的行? - How to display rows that have more than two Column Row values in common with Power Bi Dax? 从power bi中的同一列但不同的行中减去值 - Subtracting values from the same column but different rows in power bi 'sumif' 或计算/求和同一列 power BI 中的值 - 'sumif' or calculate/sum for values in the same column power BI
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM