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
24601
Frequent Visitor

Exclude/Include data without hardcoding into measure

Hi

I want to create a measure that excludes data without hardcoding specific values into the measure. 

In my organization we have closure reasons. For this example, one of those is if a file is a duplicate. I would like to create a measure that counts the number of closed files excluding duplicates. 

Previously we applied visual, page or report level filters. However, after a recent update on closure reasons we realized that updating the reports to account for this requires a lot of manual work due to the hardcoding of filters.

I would like to create a table that groups closure reasons that I may want to include/exclude and use that to in my measure as a filter. This allows me to make changes if new closure reasons are to be added/taken away from a group. 

I have currnet have two existing tables, one a fact table of files with a closure reason and a dimension table of closure reason. 

Any help here would be appreciated. I hope I explained the situation clearly but please let me know if you need more information. 

Thanks,

Niall


1 REPLY 1
Anonymous
Not applicable

Hi, @24601 

 

According to the description of the problem you provided, temporarily did not understand what you want to achieve the effect, you can provide the problem-related data table, the final realization of the effect, and the realization of logic.


How to provide sample data in the Power BI Forum - Microsoft Fabric Community

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.