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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
AKirk
Regular Visitor

Better way to create Pareto Chart?

I am trying to create a pareto chart to show the number and rate of items by category and by month, but I've been running into issues.

 

Here are my sample data:

IDConfirmed?CauseTypeRPsiteSupplier Relatedcompletedt
21715YesManOmmPro05/01/2023BaNo45051
21970YesManOmmNon05/01/2023BaNo45065
22108YesMetProPro05/01/2023BaNo45065
22471YesSUPNon07/01/2023BaYes45124
22809YesManMemNon06/01/2023BaNo45079
22864YesMetProPro07/01/2023BaNo45111
22905YesManAppNon07/01/2023BaNo45118
22905YesManMemNon07/01/2023BaNo45118
22905YesManOmmNon07/01/2023BaNo45118
23841YesManOmmNon09/01/2023BaNo45176
23922YesManAppPro09/01/2023BaNo45183
23922YesManManPro09/01/2023BaNo45183
24428YesMacMalNon10/01/2023BaNo45218
24428YesManAppNon10/01/2023BaNo45218

 

I import this into Power BI as an excel file, with the table name 'Sample'. Then, to capture items that may have more than one associated cause, I create a summary table, 'SampleSum':

SampleSum = SUMMARIZECOLUMNS('Sample'[ID], 'Sample'[Cause], 'Sample'[site], 'Sample'[RP], 'Sample'[Type], 'Sample'[Confirmed?], 'Sample'[Supplier Related], 'Sample'[completedt], "intercause", DISTINCTCOUNT('Sample'[ID]))

 

I create a new table ('Measures0') with no data to hold these two measures:

TotalCause = SUMX('SampleSum', 'SampleSum'[intercause])

 

causecum% = DIVIDE(
CALCULATE([TotalCause],
FILTER(ALL('SampleSum'[Cause]),
VAR TableRowCause = [TotalCause]
VAR MatrixRowCause = CALCULATE([TotalCause], VALUES('SampleSum'[Cause]))
RETURN
OR(TableRowCause > MatrixRowCause,
AND(TableRowCause = MatrixRowCause,
'SampleSum'[Cause] <= SELECTEDVALUE('SampleSum'[Cause])
)))),
CALCULATE([TotalCause], ALL('SampleSum'[Cause])))

 

Then I create a line and stacked column chart with SampleSum[Cause] as the x-axis, Measures0[TotalCause] as the column y-axis, and Measures0[cumcause%] as the line y-axis. In the desktop app, this works as expected. However, when I publish it to my workspace, the cumcause% measure works differently.

 

Shown in the desktop, filtered to RP = 07/01/2023, 09/01/2023, and 10/01/2023:

DesktopGraphReplica.png

 

And exactly the same graph in my workspace, with the same filters:

ServiceGraphReplica.png

 

What is causing this inconsistency, and is there a way to create the same functionality that will work equally well in both the desktop app and in the service?

1 ACCEPTED SOLUTION
AKirk
Regular Visitor

This appears to be a problem caused by auto-exist, as detailed here:

 

https://www.sqlbi.com/articles/understanding-dax-auto-exist/

 

Fortunately, as the underlying data set needs to be filtered based on fields that I can link to other tables, I can bypass this behavior by setting the filters outside the summarized table. This makes the measures behave consistently between the app and the service.

View solution in original post

3 REPLIES 3
AKirk
Regular Visitor

This appears to be a problem caused by auto-exist, as detailed here:

 

https://www.sqlbi.com/articles/understanding-dax-auto-exist/

 

Fortunately, as the underlying data set needs to be filtered based on fields that I can link to other tables, I can bypass this behavior by setting the filters outside the summarized table. This makes the measures behave consistently between the app and the service.

Anonymous
Not applicable

Hi @AKirk ,

 

You can refer to below screenshoots. In my tests, set the minimum value of the secondary y-axis to 0.3, (or customize the range you need). Then after publishing it to powerbi service everything works fine.

vkongfanfmsft_2-1706083992638.png

after publish to service, everything well done.

vkongfanfmsft_0-1706083876405.png

 

Best Regards,
Adamk Kong

 

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

That didn't change anything for me.

 

Desktop:

DesktopGraphReplica2.png

 

After publishing to the service:

ServiceGraphReplica2.png

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.