Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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!
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
113 | |
106 | |
99 | |
39 | |
30 |