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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Lobo1908
Helper I
Helper I

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
Helper I
Helper I

@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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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