March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |