Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
cleytonp
Helper I
Helper I

Percentage per Month

calculation does not match.
I am using the following formula as a measure in both views.

 

1 = DIVIDE(sum(hosts[cpuUtilization]),CALCULATE(sum(hosts[cpuUtilization]),ALLEXCEPT(hosts,hosts[Mes]) ))
asssd.PNG
 

1212.PNG

1 ACCEPTED SOLUTION

Hi @cleytonp 

 

Try this measure:

Total = CALCULATE ( COUNTROWS ( hosts ), ALL ( hosts ), hosts[status] = 1 )

 

Jing

View solution in original post

4 REPLIES 4
cleytonp
Helper I
Helper I

I'm sorry my friends for the bad explanation.
@v-jingzhang  and @daxer-almighty 

Currently I have the following situation with the number of the month the percentage of the month and how many times it has run annually.
in this column that ran annually I only count the running status = 1.

When I put the Month Number filter, it separates by month and I need the total amount, in this case 424 and not the amount per month.

hosts is my table
Percent Per Month = ((hosts[2]*100)/424)/100 (this value in bold is what I need to make a formula to always appear it)

Running Year = CALCULATE(COUNTROWS(hosts),hosts[status]=1)

I need to get the total running value regardless if period or date filter is selected.
1.PNG

I believe that by assembling this image below it would work.
sddsds2.png

Hi @cleytonp 

 

Try this measure:

Total = CALCULATE ( COUNTROWS ( hosts ), ALL ( hosts ), hosts[status] = 1 )

 

Jing

v-jingzhang
Community Support
Community Support

Hi @cleytonp 

 

Can you provide more details about your expected output? What is the numerator to be divided, the cpuUtilization value on each row? And what is the denominator, all cpuUtilization of all hosts in a month?

 

And when you put a measure's formula in a calculated column, its result is different from that in a visual because their evaluation context is different. So let us know more about the expected result. And you want a measure or a calculated column?

 

Regards,
Community Support Team _ Jing

daxer-almighty
Solution Sage
Solution Sage

I'd kindly suggest that you first read this before posting a question:

How to Get Your Question Answered Quickly - Microsoft Power BI Community

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.