Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hey there
Is there any way to show the rows in the following table but only when there is a value for the month in the filter context?
The measure that calculates the Amount deducted is the following:
Amount deducted =
VAR _ALL = CALCULATE( [Amount] , ALL( d_calendar ) ) -- , CALCULATETABLE( Example ) )
VAR _Result =
CALCULATE(
[Amount],
FILTER(
ALL( d_calendar ),
d_calendar[Date] <= MAX( d_calendar[Date] )
)
)
RETURN
_ALL - _Result
I've even tried to do that by using CALCULATETABLE() inside the CALCULATE statement, but it has not properly worked.
Do any of you know how to blank out all the red-outlined lines of the image? Something like that is expected:
Thanks in advance.
Solved! Go to Solution.
pls try this
Amount deducted =
VAR _ALL = CALCULATE( [Amount] , ALL( d_calendar ) ) -- , CALCULATETABLE( Example ) )
VAR _Result =
CALCULATE(
[Amount],
FILTER(
ALL( d_calendar ),
d_calendar[Date] <= MAX( d_calendar[Date] )
)
)
RETURN
IF([Amount],_ALL - _Result)
pls try this
Amount deducted =
VAR _ALL = CALCULATE( [Amount] , ALL( d_calendar ) ) -- , CALCULATETABLE( Example ) )
VAR _Result =
CALCULATE(
[Amount],
FILTER(
ALL( d_calendar ),
d_calendar[Date] <= MAX( d_calendar[Date] )
)
)
RETURN
IF([Amount],_ALL - _Result)
Can't believe the solution is that simple, my friend. Thank you very much.
I've been trying to fix that all the week, but always got the CallBackDataId, which screw the performance in my real-life report. However, with your piece of code you managed to help me out. Cant say other thing but thanks.
Have a nice day.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
70 | |
68 | |
43 | |
34 | |
26 |
User | Count |
---|---|
86 | |
50 | |
45 | |
38 | |
38 |