Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
benfrenkel
Helper I
Helper I

filtering chart or grid with dax

 

how to filter chart or grid with dax exp ?

is not an option in advance filtring of a page or report !!

for example last 6 weeks on sanday only   >> on axis chart or filtring  grid rows ??

 

 

1 REPLY 1
dearwatson
Continued Contributor
Continued Contributor

Hi Ben,

 

Yeah there's no expression based filtering right now.. dont get me started on being able to filter by "This Week" or as you put it "In the last 6 Weeks" which has long been a shortcoming of Power BI.

 

The best way around this right now is to create a calculated column based on the expression e.g. create a column 

"Is in last 6 weeks on a Sunday" = IF(Table[Date]>DATEDIFF(TODAY(),-6,WEEK)&&(Table[DayName]="Sunday", TRUE(),FALSE())

(I didn't check this DAX syntax so apologies if there is mistakes, just an example)

 

Then I filter the page or report based on that column... its a crude way to do it but the only solution right now.

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors