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.
Hello,
I have two tables
The purpose is to get for every account the number of unique order types. For example, if an account have 5 orders (2 of type A, 1 of type B and one of type C), I should get 3 as number. For that I used this measure:
Solved! Go to Solution.
Hi,
According to your description, I can roughly understand your requirement, I also created some sample data and I can successfully get the correct count value using the DAX formula:
Count of unique order types =
CALCULATE(DISTINCTCOUNT(Orders[type]),ALLSELECTED(Orders))
Then I go to check the interaction type between the slicer and the visuals to make sure they are enabled:
And I can get what you want, like this:
You can download my test pbix file below
Thank you very much!
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
According to your description, I can roughly understand your requirement, I also created some sample data and I can successfully get the correct count value using the DAX formula:
Count of unique order types =
CALCULATE(DISTINCTCOUNT(Orders[type]),ALLSELECTED(Orders))
Then I go to check the interaction type between the slicer and the visuals to make sure they are enabled:
And I can get what you want, like this:
You can download my test pbix file below
Thank you very much!
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Sabri-All , Accounts is joined with the order and Account filter order table?
There is a relation on accountid 1:N.
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 |
---|---|
47 | |
24 | |
20 | |
15 | |
13 |
User | Count |
---|---|
51 | |
46 | |
39 | |
19 | |
19 |