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 Experts
I am trying to subtract one % value from another % value and i cannot get BI to give the correct results. The formula is as follows:
FORMAT(CALCULATE([RH Total Revenue PY], FILTER(Management,Management[Level5]="UK Region"))-CALCULATE([RH Total Revenue PY], FILTER( 'Reporting Hierarchy 2','Reporting Hierarchy 2'[Tweaked Franchise]="INFUSION DEVICES"), FILTER( 'Reporting Hierarchy 2','Reporting Hierarchy 2'[Tweaked Sub Region]="UK Region")),"#,##0.0%;(#,##0.0%)"),
Solved! Go to Solution.
@Anonymous,
You may modify your measure using DAX below and check if it can meet your requirement.
Result = FORMAT ( ( CALCULATE ( [RH Total Revenue PY], FILTER ( ALL ( Management ), Management[Level5] = "UK Region" ) ) - CALCULATE ( [RH Total Revenue PY], FILTER ( ALL ( 'Reporting Hierarchy 2' ), 'Reporting Hierarchy 2'[Tweaked Franchise] = "INFUSION DEVICES" && 'Reporting Hierarchy 2'[Tweaked Sub Region] = "UK Region" ) ) ), "#,##0.0%;(#,##0.0%)" )
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous,
You may modify your measure using DAX below and check if it can meet your requirement.
Result = FORMAT ( ( CALCULATE ( [RH Total Revenue PY], FILTER ( ALL ( Management ), Management[Level5] = "UK Region" ) ) - CALCULATE ( [RH Total Revenue PY], FILTER ( ALL ( 'Reporting Hierarchy 2' ), 'Reporting Hierarchy 2'[Tweaked Franchise] = "INFUSION DEVICES" && 'Reporting Hierarchy 2'[Tweaked Sub Region] = "UK Region" ) ) ), "#,##0.0%;(#,##0.0%)" )
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for th excellent feedback jimmy, let me test the solution
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 |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |