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.
HI Gurus,
Can you please help on my issue?
SUMX(VALUES(FTDev2018[Region]), AVERAGE(FTDev2018[HEADCOUNT])). That's the measure I created to get the result of a subtotal, but it's not calculating correctly.
Say:
where is should be 11, not 9.55.
Any help will surely be appreciated.
Thanks,
Paul
Solved! Go to Solution.
Try with this:
Measure = IF ( ISCROSSFILTERED ( FTDev2018[Region] ), AVERAGE(FTDev2018[HEADCOUNT]), SUMX ( SUMMARIZE ( ALLSELECTED ( FTDev2018), FTDev2018[REgion], "HC", AVERAGE(FTDev2018[HEADCOUNT]) ), [HC] ) )
Try with this:
Measure = IF ( ISCROSSFILTERED ( FTDev2018[Region] ), AVERAGE(FTDev2018[HEADCOUNT]), SUMX ( SUMMARIZE ( ALLSELECTED ( FTDev2018), FTDev2018[REgion], "HC", AVERAGE(FTDev2018[HEADCOUNT]) ), [HC] ) )