Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have a large data set with Date and Status. Status includes Assigned, In Progress and Complete. I want to create a dynamic summary of the count of Complete and Total by Month. The total will be the count of all statuses. Then I can calculate the percentage of how much progress is made in each specific month (Complete divided by Total).
Desired Result of Summary table:
Month | Complete | Total | % |
Jan | 0 | 1600 | 0% |
Feb | 600 | 2700 | 22.22% |
Mar | 400 | 3000 | 13.33% |
Any suggestions?
P.S. I'm not an advanced user.
Solved! Go to Solution.
@user900 , for the First three columns use Group by of Power Query, and for % create a measure in DAX
Divide(Sum(Table[Complete]), Sum(Table[Total]) )
https://learn.microsoft.com/en-us/power-query/group-by
Hi,
Try this approach
Total = countrows(Data)
Complete = calculate([Total],Data[Status]="Complete")
Complete (%) = divide([Complete],[Total])
Hope this helps.
Hi @user900
Thanks for the solution @amitchandak provided and I want to offer some more information for you to refer to.
Sample data
Create the following measures
Complete =
VAR a =
CALCULATE ( COUNTROWS ( 'Table' ), 'Table'[Status] = "Complete" )
RETURN
IF ( a > 0, a, IF ( [Total] > 0, 0 ) )
Total = COUNTA('Table'[Status])
% = DIVIDE([Complete],[Total])
Then put the measures to a table visual.
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@user900 , for the First three columns use Group by of Power Query, and for % create a measure in DAX
Divide(Sum(Table[Complete]), Sum(Table[Total]) )
https://learn.microsoft.com/en-us/power-query/group-by
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
96 | |
69 | |
43 | |
38 | |
29 |
User | Count |
---|---|
154 | |
93 | |
63 | |
42 | |
41 |