Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi Team,
I have a requirement to show that difference between two measures A and B at certain levels with all the below dimensions.
Dimensions : AEM,AEM Group,Product,Product Type,Brand,Sold-to and Ship-To.
Below is my DAX expression which i have written,
Hi @ncbshiva
Please share an example and expected result on the report so that i can test.
Here is my example
Measure 5 = CALCULATE ( [Measure_value1] - [Measure_value2], FILTER ( ALL ( Table1 ), Table1[AEM] = MAX ( Table1[AEM] ) && Table1[AEM Group] = MAX ( Table1[AEM Group] ) && Table1[Product] = MAX ( Table1[Product] ) && Table1[Product Type] = MAX ( Table1[Product Type] ) ) )
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @ncbshiva
Assume
[Meausre A]=SUM(Table[sales])
[Meausre A]=CALCULATE(SUM(Table[sales]),SAMEPERIODLASTYEAR(Table[Date]))
then to compare [Measure A] and [Measure B]
You could add all dimensions in the "Row" field of the matrix,
add [Measure A] and [Measure B] in the 'Value" field,
then you can see different values each shows based on the dimensions.
You can also use the formula to show difference
[difference]=[Measure A]- [Measure B]
aslo add all dimensions in the "Row" field of the matrix.
If you have a specific situation, please share some data examples.
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-juanli-msft ,
I wanted to know how to calcuate some measures at different dimension levels.
For Example i want to calculate the difference between 2 measures at below dimension levels
AEM,AEM Group,Product,Product Type,Brand,Sold-to and Ship-To.
This means that difference should always be calculated at the above mentioned combination of dimensions always ,
regardless whether they exist in my visuals or not. The same can be done in Tableau by using FIXED Level of details expression. I want to know how can the same be done in Power BI.
Regards,
SHIVA
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |