Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
How would I create a measure to show how many projects (as a percentage) have been completed within that latest calendar month?
Solved! Go to Solution.
Hi @Alta88 ,
Here some steps that I want to share, you can check them if they suitable for your requirement.
Here is my test data:
Create a measure
Percentage =
VAR _coutRows = COUNT('Table'[Project ID])
VAR _rows =
CALCULATE(
COUNT('Table'[Project ID]),
FILTER(
'Table',
'Table'[Status] = "Completed" && 'Table'[Comopleted Date] >= DATE(YEAR(TODAY()),MONTH(TODAY()),1) && 'Table'[Comopleted Date] <= EOMONTH(TODAY(),0)
)
)
RETURN
_rows/_coutRows
Final output
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Cool! Looks like it worked! Thanks for your help!
Yes, here's the data again:
Thanks for the data showing completed projects. That info wasn't in the first image you shared.
Just FYI, it's always good practice to provide data for us to help you, not images. We have to enter all that data into PBI before we can start on a solution. You'll get a better response from people if you provide data as a file or at least a table in the forum.
You also haven't given an example of the desired result. You say you want 'a measure to show how many projects (as a percentage) have been completed within that latest calendar month' :
Regards
Phil
Proud to be a Super User!
Hi @Alta88
In your data there isn't anywhere that says when a project is completed. Need this to do any kind of calculations.
Regards
Phil
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
87 | |
73 | |
54 | |
43 | |
37 |
User | Count |
---|---|
98 | |
64 | |
54 | |
48 | |
45 |