Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I am just using below formula to calculate Rev/Sqft by Catogory by DataMth (data month)
DataMth | ||||
Catogory | 201911 | 201912 | 202001 | 202002 |
A | 705.2295 | 705.2643 | 528.5895 | 448.5803 |
But when I choose all catogory, found that all column data are the same, did not filter by catogory, is anything missed in my formula ? thanks a lot.
DataMth | ||||
Catogory | 201911 | 201912 | 202001 | 202002 |
A | 393.8481 | 424.5263 | 373.781 | 337.5545 |
E | 393.8481 | 424.5263 | 373.781 | 337.5545 |
G | 393.8481 | 424.5263 | 373.781 | 337.5545 |
H | 393.8481 | 424.5263 | 373.781 | 337.5545 |
Solved! Go to Solution.
@Anonymous
00This_month_R.S = CALCULATE( ('Table'[00Rev]/'Table'[Sqft]), filter(ALLEXCEPT('Table', 'Table'[Catogory]), 'Table'[DataMth]<=max('Table'[DataMth])))
@Anonymous
Move month into a separate table
Try
This_month_R.S = CALCULATE( divide('Table'[00Rev],'Table'[Sqft]),filter(ALLSELECTED('Month'),'Table'[DataMth]<=max('Month'[DataMth])))
Or
This_month_R.S = CALCULATE( divide(sum('Table'[00Rev]),sum('Table'[Sqft])),filter(ALLSELECTED('Month'),'Table'[DataMth]<=max('Month'[DataMth])))
Thank you, I tried, but seems result is not correct, smaller more than it should be.
@Anonymous
00This_month_R.S = CALCULATE( ('Table'[00Rev]/'Table'[Sqft]), filter(ALLEXCEPT('Table', 'Table'[Catogory]), 'Table'[DataMth]<=max('Table'[DataMth])))
Thank you, it does work!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.