Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi Experts
I am getting the following error on my date filter range on mini and max in the following DAX, cannot see wood for the trees. i have tried to add format and value to resolve teh issues unless i am doing something wrong, created a second column in my date table call date 2 using = format (calendar[date], "dd/mm/yyyy") and still no luck, changed the local to uk as well and still no luck.
Report Filter =
VAR oL = "DIMSalesPerson/OfficeLocation eq '" & SELECTEDVALUE('DIMSalesPerson'[OfficeLocation]) & "'"
VAR oC = "DIMSalesPerson/City eq '" & SELECTEDVALUE('DIMSalesPerson'[City]) & "'"
VAR oS = "DIMShipper/ShipCompanyName eq '" & SELECTEDVALUE('DIMShipper'[ShipCompanyName]) & "'"
VAR oP = "DIMProduct/CategoryName eq '" & SELECTEDVALUE('DIMProduct'[CategoryName]) & "'"
VAR oSP = "DIMSalesPerson/SalesPerson eq '" & SELECTEDVALUE('DIMSalesPerson'[SalesPerson]) & "'"
VAR oRegion = "DIMSalesPerson/SalesRegion eq '" & SELECTEDVALUE('DIMSalesPerson'[SalesRegion]) & "'"
VAR oDatefilter = IF(ISFILTERED('Calendar'[Date]), "Calendar/Date le " & MAX('Calendar'[Date]) & " and Calendar/Date ge " & MIN('Calendar'[Date]))
RETURN
[Report URL] &
SWITCH(
TRUE,
ISFILTERED('DIMSalesPerson'[OfficeLocation]) && ISFILTERED('DIMSalesPerson'[City]), "?filter=" & oL & " and " & oC & " and " & oS & " and " & oP & " and " & oSP & " and " & oRegion & " and " & oDatefilter,
ISFILTERED('DIMSalesPerson'[OfficeLocation]), "?filter=" & oL,
ISFILTERED('DIMSalesPerson'[City]), "?filter=" & oC,
ISFILTERED('DIMShipper'[ShipCompanyName]), "?filter=" & oS,
ISFILTERED('DIMProduct'[CategoryName]), "?filter=" & oP,
ISFILTERED('DIMSalesPerson'[SalesPerson]), "?filter=" & oSP,
ISFILTERED('DIMSalesPerson'[SalesRegion]), "?filter=" & oRegion,
IF(ISFILTERED('Calendar'[Date]), "Calendar/Date le " & MAX('Calendar'[Date]) & " and Calendar/Date ge " & MIN('Calendar'[Date]))
)Hi @Anonymous
It seems the visible part of [Report Filter] has correct syntax.
How do you calculate for [Report URL]?
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 37 | |
| 31 | |
| 27 | |
| 27 |