Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Dear all,
Objective: I want to develop a measure to count distincly the number of my project based on the last date. I have the following column refering to a date:
I have transformed Month Running into date and extract Month.
This steps was to use the following measure: =
Solved! Go to Solution.
To calculate the max month you must have a month number column instead month name column, because you cannot compare Texts. With month number column, you can try the following formula:
For example:
column = CALCULATE(DISTINCTCOUNT('Business management (customer HUB)'[Project Definition 2]),filter('Business management (customer HUB)', [month number] = maxx(all(['Business management (customer HUB)'),[month number])))
Instead of share the image, if you can just provide a sample table with a date column that allow me to copy paste. I could make a test and come out with a more definite solution.
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
To calculate the max month you must have a month number column instead month name column, because you cannot compare Texts. With month number column, you can try the following formula:
For example:
column = CALCULATE(DISTINCTCOUNT('Business management (customer HUB)'[Project Definition 2]),filter('Business management (customer HUB)', [month number] = maxx(all(['Business management (customer HUB)'),[month number])))
Instead of share the image, if you can just provide a sample table with a date column that allow me to copy paste. I could make a test and come out with a more definite solution.
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
@julrua , not very clear. Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
check if these can help closingbalancemonth, closingbalanceyear : https://youtu.be/yPQ9UV37LOU
@amitchandak thank you for you quick reply.
I have the following information into Evolution analyses table.
I need to count distincly the number of project definition for the last period.
For example, I will need to calculate the distinct number of project definition for December because it is the last period for 2020.
Is that more clear?
Thank you
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
94 | |
92 | |
82 | |
71 | |
49 |
User | Count |
---|---|
143 | |
121 | |
112 | |
58 | |
57 |