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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.