Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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
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 |
---|---|
76 | |
76 | |
56 | |
37 | |
34 |
User | Count |
---|---|
99 | |
56 | |
54 | |
45 | |
40 |