cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Lobo1908
Frequent Visitor

Pareto chart in power BI not adding identical values

I've got an issue with my Pareto chart. It is basically not adding identical values on top of each other when it comes to the line values. As seen in the picture below codes CHP01, DAM02 and PNT08 have the same value of 3. The line chart shows them all at level 83.3% which should be the level of the last of this value.

 

Lobo1908_2-1646405126003.png

 

When all values are different the line looks fine, please see an example

 

 

Lobo1908_3-1646405222614.png

 

I'm using the following measure to count the number of values in a string and in Column values in my visual

VAR __SearchTerms =
    ADDCOLUMNS (
       'C_Codes_lookup2',
        "Count",
            COUNTROWS (
                FILTER (
                    'C_Report',
                    FIND ( [Code], 'C_Report'[reportedfault],, 0 ) > 0
                )
            )
    )
RETURN
    SUMX ( __SearchTerms, [Count] )

And the following measure to establish the Pareto chart and as line value in my visual

VAR StateRev = [1.1 C Codes Count]
VAR ALLCodes = CALCULATE([1.1 C Codes Count], ALLSELECTED(C_Codes_lookup2[Code]))
RETURN
DIVIDE(
SUMX(
    FILTER(
        SUMMARIZE(ALLSELECTED(C_Codes_lookup2[Code]), C_Codes_lookup2[Code],
            "Cumulative", [1.1 C Codes Count]),
                [Cumulative] >= StateRev ),
                    [Cumulative]),
    ALLCodes, 0) 

Could someone be so kind and help me solve this issue.

1 ACCEPTED SOLUTION

@littlemojopuppy

PREVIEW
 
Just downloaded the sample to double-check it there and there are 2 Pareto charts in it. 

 
 Lobo1908_0-1646671247505.png

The measures for them are in C_report and DI_report 

View solution in original post

4 REPLIES 4
Lobo1908
Frequent Visitor

@Lobo1908 not seeing a Pareto chart in here...

@littlemojopuppy

PREVIEW
 
Just downloaded the sample to double-check it there and there are 2 Pareto charts in it. 

 
 Lobo1908_0-1646671247505.png

The measures for them are in C_report and DI_report 

littlemojopuppy
Community Champion
Community Champion

Hi @Lobo1908 can you provide some sample data to work with?

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors