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

Don'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.

Reply
ChrisAZ
Helper II
Helper II

How to get my monthly percent values to not get totaled when showing more than one month?

I am trying to get the percent values for each time period to display under the main item as shown, but it should be showing an average and not a SUM. I am sure it is a simple fix, but I cannot figure it out. Thanks.

 

Screenshot 2024-12-31 152029.png

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

To your visual, drag Date from the Date table (not the Fact table).  Write this measure

Measure = averagex(values(DateTable[Date]),[IdleTime%])

If it does not work, then share the download link of the PBI file.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

6 REPLIES 6
Ashish_Mathur
Super User
Super User

Hi,

To your visual, drag Date from the Date table (not the Fact table).  Write this measure

Measure = averagex(values(DateTable[Date]),[IdleTime%])

If it does not work, then share the download link of the PBI file.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks. This worked!

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Please show the expected outcome based on the sample data you provided.

Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Thanks for the link.

Thanks for the reply from Ashish_Mathur  and lbendlin , please allow me to provide another insight:

Hi, @ChrisAZ 
Thanks for reaching out to the Microsoft fabric community forum.

Regarding the issue you raised, my solution is as follows:

1.Firstly, I have created the following sample data based on the information you provided:

vlinyulumsft_0-1735800566842.png

Assuming the original measure are:

MEASURE =
FORMAT (
    DIVIDE (
        SUM ( 'Samsara Fual'[Column1] ),
        CALCULATE ( SUM ( 'Samsara Fual'[Column1] ), ALL ( 'Samsara Fual' ) )
    ),
    "00%"
)

The current results are:

vlinyulumsft_1-1735800624124.png

2.Secondly, I have modified the measure as follows:

Measure2 =
VAR nn2 =
    SUMMARIZE (
        'Samsara Fual',
        'Samsara Fual'[Vehicle],
        'Samsara Fual'[date],
        'Samsara Fual'[Column1],
        "avg",
            DIVIDE (
                SUM ( 'Samsara Fual'[Column1] ),
                CALCULATE ( SUM ( 'Samsara Fual'[Column1] ), ALL ( 'Samsara Fual' ) )
            )
    )
RETURN
    IF (
        HASONEVALUE ( 'Samsara Fual'[Vehicle] ),
        FORMAT ( AVERAGEX ( nn2, [avg] ), "00%" ),
        FORMAT ( SUMX ( nn2, [avg] ), "00%" )
    )

3.Here's my final result, which I hope meets your requirements.

 

vlinyulumsft_2-1735800657435.png

Please find the attached pbix relevant to the case.

 

Best Regards,

Leroy Lu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

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