The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I have this expression, I want it to react to a slicer linked to Meetings'[Date]
Visited_Regions=DIVIDE( COUNTROWS( INTERSECT( VALUES('Meetings'[Region]), VALUES('Priorities'[Region]) ) ), COUNTROWS(DISTINCT('Clinic priority'[Region])))
the result is a % - priorities do not change so it doesn't have a date column
could you help me?
Hi, @Anonymous
Make sure the slicer is set to filter the table by . For guidance on setting up slicers, including date slicers, you can refer to the official documentation here:
Create a numeric or date range slicer in Power BI - Power BI | Microsoft Learn
Make sure that there is a relationship between the table and any other tables that need to be indirectly filtered by date selection. If the and tables need to react indirectly to the date slicer, consider how they relate to the tables in the model.
The formula used by the DAX formula should respect the filter context imposed by the slicer. However, make sure that there are no context conversion issues.
If the direct method doesn't work because of the missing date column in , consider creating a calculated table that aggregates priorities by date, or using measures to dynamically calculate the total priority as the denominator in the DIVIDE function, and then essentially respect the context of the slicer
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data)
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello. I am in a similar position again. I tried your approach and still couldn't manage. Here the new case:
Thank you. I went a different way to reach my objective hence I didn't try your solution.