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

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.

Reply
Jojeh
Frequent Visitor

Excluding some data after a certain date from dashboard

Let's say I want to exclude countries a, b, and c, after 01-01-2023 on a dashboard. so, data before that time appears for countries a, b, and c but after that time those countries show blank.

One way is to write it in the query when importing from SQL to power bi, right? but I wanted to know if there are other ways to do that because sometimes there are a lot of tables.

Please let me know if you need more info and thank you for the help!

4 REPLIES 4
JirkaZ
Solution Specialist
Solution Specialist

You could implement this logic in a measure. The question is what would happen if the user chose a date interval say 2022-01-01 until 2024-12-31?

Jojeh
Frequent Visitor

The user can only choose FY and it will show each month of that year (Matrix Chart). is there a way to do it on a filter panel?

Also, what would the Measure be considering I have dim_time, dim_location, and the data table with the country name?

Jojeh
Frequent Visitor

and if the user chooses 2022-01-01 until 2024-12-31, it has to show the data until 2023-01-01 and the rest blank. 

JirkaZ
Solution Specialist
Solution Specialist

I think something like this could work:

My Measure := 

SUMX('DimLocation', 
  IF('DimLocation'[Country] in ("Country 1", "Country 2"), 
  CALCULATE(SUM('FactTable'[SalesAmount]), DimDate[Date] < DATE(2023, 1, 1)), 
  SUM('FactTable'[SalesAmount])
)

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