The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi !!
I want to display in the graphic the number of duplicate rows according to date. But i don't know how to count uniquely multiple columns.
Thank you for your help !
Solved! Go to Solution.
Hi @mahsy ,
Please try this measure. And set the filters as shown in the figure.
Measure = COUNTROWS('Table') - COUNTROWS(SUMMARIZE('Table','Table'[Course],'Table'[PR],'Table'[Date]))
Attached PBIX file for reference.
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
Hi @mahsy ,
Please try this measure. And set the filters as shown in the figure.
Measure = COUNTROWS('Table') - COUNTROWS(SUMMARIZE('Table','Table'[Course],'Table'[PR],'Table'[Date]))
Attached PBIX file for reference.
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
@mahsy ,
create a calculated column like the below and put that column in the X-axis (values) or Y-axis (values), then set the aggregation as count.
Earlier = COUNTX(filter(Table_count,EARLIER(Table_count[Course])=Table_count[Course] && EARLIER(Table_count[PR])=Table_count[PR] &&EARLIER(Table_count[Date])=Table_count[Date]),Table_count[Course])
Thanks,
Arul
Thank you.
Unfortunately i'm in live connection, so i can't create calculated column.
@mahsy ,
try this in measure,
cal = CALCULATE(COUNT(Table_count[Course]),FILTER(ALL(Table_count),
COUNTX(filter(Table_count,
EARLIER(Table_count[Course])=Table_count[Course] &&
EARLIER(Table_count[PR])=Table_count[PR] &&
EARLIER(Table_count[Date])=Table_count[Date]),
Table_count[Course])))
Thanks,
Arul
Here is what i get. It counts all rows.
I just want to count duplicate rows. Here is the expected result.
thank you for your help !
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
21 | |
18 | |
18 | |
15 | |
13 |
User | Count |
---|---|
41 | |
35 | |
22 | |
22 | |
17 |