The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Dear Communitity, hope you are doing well.
The code below works at the line item level but when it come to the Grand Total there is not result ( Blannk Grand Total)
Solved! Go to Solution.
Hi,
I am not sure how your semantic model looks like, but please try something like below whether it suits your requirement.
Total_Cost per GL =
VAR CurrentGL =
VALUES ( Report_Structure[Account] )
VAR CurrentYear =
VALUES ( Report_Structure[Fiscal Year] )
RETURN
CALCULATE (
[Total_COST],
FILTER (
Transactional,
Transactional[AccountNumber]
IN CurrentGL
&& Transactional[FiscalYear] IN CurrentYear
)
)
Thank you very much. It works perfectly!
I will review my code to avoid this to happend again!
Hi,
I am not sure how your semantic model looks like, but please try something like below whether it suits your requirement.
Total_Cost per GL =
VAR CurrentGL =
VALUES ( Report_Structure[Account] )
VAR CurrentYear =
VALUES ( Report_Structure[Fiscal Year] )
RETURN
CALCULATE (
[Total_COST],
FILTER (
Transactional,
Transactional[AccountNumber]
IN CurrentGL
&& Transactional[FiscalYear] IN CurrentYear
)
)
User | Count |
---|---|
15 | |
13 | |
8 | |
6 | |
6 |
User | Count |
---|---|
24 | |
19 | |
12 | |
9 | |
7 |