Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I am trying to find out customer volatility by subtracting lowest volume month from highest volume month. I would like to do this by using a variable to create a ranking, then
Calculate(counta(volume) , filter( table , [rankvar] = 1)) - Calculate(counta(volume) , filter( table , [rankvar] = max(monthnum))
But I cannot filter by a variable since there is no row context. What can I do?
Solved! Go to Solution.
What I was trying to do, which was basically filter month by a measure that ranked months based on volume, was not possible. Instead I made a measure to calculate percent change month-over-month and then multiply this by the previous month's volume.
Hi @Anonymous ,
Could you tell me if your problem has been solved? If it is, kindly mark the helpful answer as a solution if you feel that makes sense. Welcome to share your own solution. More people will benefit from here.
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
What I was trying to do, which was basically filter month by a measure that ranked months based on volume, was not possible. Instead I made a measure to calculate percent change month-over-month and then multiply this by the previous month's volume.
Hi @Anonymous ,
I create a sample with the highest volume minus the lowest minus directly. You can have a try.
sum = CALCULATE(SUM('Table'[volume]),ALLEXCEPT('Table','Table'[Date].[Month]))
Measure =
var a = MAX('Table'[sum])
var b = MIN('Table'[sum])
return a-bBest Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 98 | |
| 72 | |
| 50 | |
| 49 | |
| 42 |