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.
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?
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.
@Anonymous , using this example switch formula
This can help : https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
96 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
88 | |
63 |