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.
Total Revenue line = CALCULATE([Actuals CM],FILTER(Layout,Layout[Level 2]="TOTAL REVENUE")) -881495.70
reaching to all my power BI senseis regarding an issue that i am having with a measure.
Solved! Go to Solution.
@crisaldana , BAsed on what I got try like
CALCULATE([Actuals CM],Layout[Level 2]="TOTAL REVENUE")
or
CALCULATE([Actuals CM],FILTER(all(Layout[Level 2]),Layout[Level 2]="TOTAL REVENUE"))
or
CALCULATE([Actuals CM],FILTER(allselected(Layout[Level 2]),Layout[Level 2]="TOTAL REVENUE"))
or
CALCULATE([Actuals CM],FILTER(allselected(Layout),Layout[Level 2]="TOTAL REVENUE"))
Thank you all for your assistance, your replies alone helped me understand more about filters and calculations. Thanks.
Hi @crisaldana
Your original formula may only show data in [level2]= "TOTAL REVENUE" or the group "TOTAL REVENUE" contained in [level1], instead of returning -881.50k per row.
like this:
You can try the following formula:
Total Revenue line = CALCULATE([Actuals CM],FILTER(ALL(Layout),Layout[Level 2]="TOTAL REVENUE"))
OR
Total Revenue line = CALCULATE([Actuals CM],FILTER(ALLSELECTED(Layout),Layout[Level2]="TOTAL REVENUE"))
Refer to:
ALL function (DAX) - DAX | Microsoft Learn
ALLSELECTED function (DAX) - DAX | Microsoft Learn
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@crisaldana , BAsed on what I got try like
CALCULATE([Actuals CM],Layout[Level 2]="TOTAL REVENUE")
or
CALCULATE([Actuals CM],FILTER(all(Layout[Level 2]),Layout[Level 2]="TOTAL REVENUE"))
or
CALCULATE([Actuals CM],FILTER(allselected(Layout[Level 2]),Layout[Level 2]="TOTAL REVENUE"))
or
CALCULATE([Actuals CM],FILTER(allselected(Layout),Layout[Level 2]="TOTAL REVENUE"))
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 |
---|---|
41 | |
21 | |
21 | |
14 | |
13 |
User | Count |
---|---|
44 | |
32 | |
30 | |
18 | |
17 |