Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi Guys
I want to create a distinct count for cancel note
These "Request from Management - pick up resource hours" should only be count once since it's all from the same date but different shift.
However, If I only use distinct count in this situation. "Request from Management - pick up resource hours" from other date will all count as only one note in total
Is there anyway I can count this cancel note also with parameter of different date so "Request from Management - pick up resource hours" from other date will count seperatly?
Thanks In advance.
Solved! Go to Solution.
Hi @njxfoster ,
Try to create a measure like below:
Measure =
var min_time = CALCULATE(MIN('Table'[Time]),ALLSELECTED('Table'[Time]))
return CALCULATE(DISTINCTCOUNT('Table'[Note]),FILTER('Table',min_time='Table'[Time]))
If I misunderstand what you mean, could you provide the results you expect?
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @njxfoster
Can you try the following measure:
DCount By Cat = CALCULATE ( DISTINCTCOUNT ( 'Table'[Cancel_Note] ) , ALLEXCEPT ( 'Table' , 'Table'[Date] ) )
If the filtering category changes (i.e. Date), you can just change it or you can add to it by adding a comma and 'Table'[Category2] after the 'Table'[Date]...
Hope this helps!
Theo 🙂
If I have posted a response that resolves your question, please accept it as a solution to formally close the post.
Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!
Want to connect?www.linkedin.com/in/theoconias
Hi @njxfoster ,
Try to create a measure like below:
Measure =
var min_time = CALCULATE(MIN('Table'[Time]),ALLSELECTED('Table'[Time]))
return CALCULATE(DISTINCTCOUNT('Table'[Note]),FILTER('Table',min_time='Table'[Time]))
If I misunderstand what you mean, could you provide the results you expect?
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @njxfoster
Can you try the following measure:
DCount By Cat = CALCULATE ( DISTINCTCOUNT ( 'Table'[Cancel_Note] ) , ALLEXCEPT ( 'Table' , 'Table'[Date] ) )
If the filtering category changes (i.e. Date), you can just change it or you can add to it by adding a comma and 'Table'[Category2] after the 'Table'[Date]...
Hope this helps!
Theo 🙂
If I have posted a response that resolves your question, please accept it as a solution to formally close the post.
Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!
Want to connect?www.linkedin.com/in/theoconias
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
58 | |
55 | |
55 | |
37 | |
30 |
User | Count |
---|---|
78 | |
64 | |
45 | |
43 | |
40 |