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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Switching between subcategory and category fact tables

Hi,

I have two filters that refer to a hierarchy - let's say a filter for a subcategory and category.

 

I have two fact tables that refer to information at the subcategory and category level.

 

When the user chooses a specific subcategory from the filter, I want my dashboard to pull information from the subcategory fact table. However if they select 'Choose All' from the subcategory filter, I want my dashboard to pull information from the category fact table instead.

 

Could you advise on the best way to do this?

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

Try to create a measure using the if statement and the HASONEFILTER or ISFILTERED function.

'Choose All'  is false,'Chooses a specific subcategory' is true.

If the problem persists,Please describe more details to let us know more about your scenario and see if we can deal with your idea or find an alternative.

How-to-Get-Your-Question-Answered-Quickly 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.