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 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.
Solved! Go to Solution.
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.
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.
Thanks. This worked!
You are welcome.
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:
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:
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.
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.
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 |
---|---|
99 | |
70 | |
44 | |
38 | |
29 |
User | Count |
---|---|
156 | |
92 | |
61 | |
44 | |
42 |