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.
Hello,
How to get unique count based on multi condition.
Sample Data: Sample Data 1. Excel file(Having formulas), 2. PBIX file(Help me to get DAX formula).
Regards,
Chandrashekar B
Solved! Go to Solution.
Hello James,
I am looking for unqiue count based on multi condition. For Ex:
Filter Below:
Column1=Exclude :"HD"
Column3=Incude 1
Column4=Include "First" & "Second"
Column5=Include CH.
Below Table after filtering. I need to take unique count from Column2 that will be 10.
Column1 | Column2 | Column3 | Column4 | Column5 | Hours |
IE | CT1 | 1 | Second | CH | 10 |
KESS | CT3 | 1 | Second | CH | 10 |
KESS | CT4 | 1 | Second | CH | 10 |
Mylife | CT5 | 1 | First | CH | 10 |
Mylife | CT7 | 1 | First | CH | 10 |
Mylife | CH1 | 1 | First | CH | 10 |
KESS | CT8 | 1 | Second | CH | 10 |
Mylife | CH2 | 1 | First | CH | 11 |
Mylife | CH2 | 1 | First | CH | 12 |
Mylife | CH2 | 1 | First | CH | 12 |
Mylife | CH3 | 1 | First | CH | 12 |
Mylife | CH3 | 1 | First | CH | 12 |
Mylife | CH3 | 1 | First | CH | 12 |
Mylife | CH4 | 1 | First | CH | 12 |
Mylife | CH4 | 1 | First | CH | 12 |
I cannot reach your expected results. Not sure what you are looking for !
here 2 measures :
Hello James,
It is working fine and thanks for the solution.
Regards,
Chandrashekar B
Hello James,
I am looking for unqiue count based on multi condition. For Ex:
Filter Below:
Column1=Exclude :"HD"
Column3=Incude 1
Column4=Include "First" & "Second"
Column5=Include CH.
Below Table after filtering. I need to take unique count from Column2 that will be 10.
Column1 | Column2 | Column3 | Column4 | Column5 | Hours |
IE | CT1 | 1 | Second | CH | 10 |
KESS | CT3 | 1 | Second | CH | 10 |
KESS | CT4 | 1 | Second | CH | 10 |
Mylife | CT5 | 1 | First | CH | 10 |
Mylife | CT7 | 1 | First | CH | 10 |
Mylife | CH1 | 1 | First | CH | 10 |
KESS | CT8 | 1 | Second | CH | 10 |
Mylife | CH2 | 1 | First | CH | 11 |
Mylife | CH2 | 1 | First | CH | 12 |
Mylife | CH2 | 1 | First | CH | 12 |
Mylife | CH3 | 1 | First | CH | 12 |
Mylife | CH3 | 1 | First | CH | 12 |
Mylife | CH3 | 1 | First | CH | 12 |
Mylife | CH4 | 1 | First | CH | 12 |
Mylife | CH4 | 1 | First | CH | 12 |
Hello,
I will come back to you.
Regards,
Chandrashekar B
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
36 | |
14 | |
12 | |
7 | |
7 |