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
Please I need suggestions on how to solve this issue. ,
I have a table A, which has 4 columns, Locations, Trials and Interventions. The task is to count the trials and interventions which have a United Kingdom location.
Currently I have a manual workaround which relies on a filter. And I use two cards to display the count of Trials and Interventions respectively. However this means that I have to regularly check the filter to ensure that all values with United Kingdom is selected -- see below.
Please any suggestions on the DAX formula to count of the number of Trials and Intervention where the
location column has a United Kingdom entry and display this value on a measure.
Thank you
PhyllisN
Solved! Go to Solution.
Hi @Anonymous ,
Just try the following two measure:
CountTrail = CALCULATE(DISTINCTCOUNT('Table'[Trials]),ALL('Table'),IFERROR(SEARCH("United Kingdom",'Table'[Locations]),-1) > 0)
CountInterventions = CALCULATE(DISTINCTCOUNT('Table'[Interventions]),ALL('Table'),IFERROR(SEARCH("United Kingdom",'Table'[Locations]),-1) > 0)
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
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 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |