Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Hi guys,
I'm pretty new to Power Bi, and I've been struggling with the table task below.
I've got the following table where each row is either ACTUAL or PLANNED.
CostSourceCount is counting how many ACTUAL or PLANNED rows I've got per month.
What I want to achieve with the TotalPlanned column is to divide the COUNT of CostSource / COUNT of Total Table Rows.
Something like this:
Month | CostSource | CostSourceCount | TotalPlanned |
Jan | ACTUAL | 2 | 0.1% |
Jan | PLANNED | 1654 | 99.9% |
Feb | ACTUAL | 164 | 7.1% |
Feb | PLANNED | 2149 | 92.9% |
Mar | ACTUAL | 498 | 20.3% |
Mar | PLANNED | 1958 | 79.7% |
I tried the formula below, but all rows are returning 100%
Hi, @Anonymous
Please check the below picture and the sample pbix file's link down below.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi Jihwan,
Thank you, that was helpful.
Would it be possible to add another column where I divide the ACTUAL by PLANNED?
E.g.
April ACTUAL 1014 / PLANNED 1840 = 55%
April PLANNED 1840/ PLANNED 1840 = 100%
Hi, @Anonymous
Thanks for your feedback.
I am not sure if I understood your question correctly, but please check the below.
Divide by Planned =
IF (
ISFILTERED ( 'Table'[Month] ),
DIVIDE (
[CostSourceCount Measure],
CALCULATE ( [CostSourceCount Measure], 'Table'[CostSource] = "PLANNED" )
)
)
https://www.dropbox.com/s/nf2k3auq1oslg0i/glausantos.pbix?dl=0
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
16 | |
10 | |
8 | |
8 | |
7 |