Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowI've been struggling with this particular item since day one, and every time I think I've made progress I hit the same wall.
Basically, I'm trying to show uptake over time, instead of using a date table, I have a series from 0-100 which represents months after activation.
When using the measure below:
I get the following problem: For months in which there was no uptake, I want it to show the maximum up to that point, instead it shows a blank if nothing fell within that particular month.
However when I use this measure:
Is there anyway to get the best of both worlds? Show the value less than or equal to the current month, unless it's greater than the maximum, in which case leave it blank.
@rusgesig , Your second measure should stop
Measure =
CALCULATE(
SUM('Uptake'[Uptake]),
FILTER(
ALLSELECTED('MonthSeries'[MonthSeries]),
'MonthSeries'[MonthSeries]<= MAX('MonthSeries'[MonthSeries])
)
)
Or try Like
Measure =
var _maxx(ALLSELECTED('MonthSeries'),'MonthSeries'[MonthSeries])
return
CALCULATE(
SUM('Uptake'[Uptake]),
FILTER(
ALLSELECTED('MonthSeries'[MonthSeries]),
'MonthSeries'[MonthSeries]<= MAX('MonthSeries'[MonthSeries])
&& MonthSeries'[MonthSeries] <=_maxx
)
)
So is this a bug in Power BI?
Hi amitchandak, thanks for your reply.
Unfortunately your first measure returns the same results as my second measure (doesn't stop at month 25 in this case).
The second measure is not accepted due to a syntax error.
Bump
For some reason it keeps removing the screenshots I upload.
1st Measure:
2nd Measure :
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
98 | |
69 | |
66 | |
49 | |
41 |