Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi All,
I would need some direction on Additional logic on retrieving previous value. Requirement is to exclude Weekends and holidays bring Friday Value over to Monday as Prev Value .
I already have weekend and holidays column as weekend_ind and holidays_ind.
Solved! Go to Solution.
Hi,
I am not sure how your datamodel looks like, but please try something like below whether it suits your requirement.
expected result measure: =
VAR _prevworkingdate =
MAXX (
FILTER (
ALL ( 'Calendar' ),
'Calendar'[Date] < MAX ( 'Calendar'[Date] )
&& 'Calendar'[holidays_ind] = "False"
&& 'Calendar'[weekend_ind] = "False"
),
'Calendar'[Date]
)
RETURN
CALCULATE (
SUM ( 'FactTable'[Quantity] ),
FILTER ( ALL ( 'Calendar' ), 'Calendar'[Date] = _prevworkingdate )
)
Hi @ghost10 ,
Could you please provide some sample data for me to test?
Please remove sensitive data.
Best Regards,
Community Support Team _Yinliw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
I am not sure how your datamodel looks like, but please try something like below whether it suits your requirement.
expected result measure: =
VAR _prevworkingdate =
MAXX (
FILTER (
ALL ( 'Calendar' ),
'Calendar'[Date] < MAX ( 'Calendar'[Date] )
&& 'Calendar'[holidays_ind] = "False"
&& 'Calendar'[weekend_ind] = "False"
),
'Calendar'[Date]
)
RETURN
CALCULATE (
SUM ( 'FactTable'[Quantity] ),
FILTER ( ALL ( 'Calendar' ), 'Calendar'[Date] = _prevworkingdate )
)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 32 | |
| 31 | |
| 18 | |
| 12 | |
| 11 |