Forum Discussion
OR Logic With Matching count in Power BI Desktop using DAX
- 3 years ago
Thanks for clarifying scenario #2.
Hopefully I am understanding correctly now.
Please create the following 2 measures:
Test Scenario 1 =
Brush & Eggs should return 0 because there are 0 matching Transaction ID's selected.
Test Scenario 2 =
Brush, Eggs & Beer should return 0 because there are 0 matching Transaction ID's selected.
Test Scenario 3 =
Brush, Tooth Paste & Pencil should return 3 because there are 3 matching ID's selected.
In summary, for the 3 scenarios discussed, the Card Visual is returning the desired result; unless I have completely misunderstood yet again.
Let me know if there are other scenarios for which the Card Visual does not return the desired result.
Hope this is helpful to you.
Regards,
Nathan
Thanks for sharing! Very helpful.
This is what you need.
Regards,
Nathan
- Sabeer933 years agoFrequent Visitor
No, you didnt get my requirement, The requirement is to show only matching count of display products with the same transaction id
Whenever they select the 2 different records from the Product table its should check the matching count of transaction id and its should show the matching record count- Take33 years agoRegular Visitor
My apologies. I still do not understand.
1) If the user selects Brush & Eggs, what should the correct result be?
2) If the user selects Brush, Eggs & Beer, what should the correct result be?
3) If the user selects Brush, Tooth Paste & Pencil, what should the correct result be?
I believe I will understand better once you answer these 3 scenarios for me.
Regards,
Nathan
- Sabeer933 years agoFrequent Visitor
) If the user selects Brush & Eggs, what should the correct result be? Zero
2) If the user selects Brush, Eggs & Beer, what should the correct result be? Two
3) If the user selects Brush, Tooth Paste & Pencil, what should the correct result be? Three