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
leoohenrii
New Member

Pareto chart does not change the order of categories

I created a pareto chart using DAX. At first it is working normally.

The only problem I'm having is that when I select a filter, the line in percentage does not respect the Pareto principle.

I am attaching a print of the problem and the code in DAX.

 

Link dataset = https://drive.google.com/file/d/1qK1okpRjsXKCgJ0Rk08cZloT2oCcEXq6/view?usp=share_link

 

DAX Code: 

//Total Invoicing
Faturamento = SUM(e_commerce_brasil[valor_pago])
 
//Pareto 
Pareto Faturamento =
VAR tFaturamento = CALCULATE([Faturamento],ALLSELECTED(e_commerce_brasil))
VAR fAtual = [Faturamento]
VAR tbResumo =
    SUMMARIZE(ALLSELECTED(e_commerce_brasil), e_commerce_brasil[produto_categoria], "Total", [Faturamento])
VAR tAcumulado =  SUMX(FILTER(tbResumo, [Total] >= fAtual), [Total])
RETURN
tAcumulado / tFaturamento

-------------------------------------------------------------------------------------------------

How to fix? 

 

No Filter

 

leoohenrii_0-1667337699569.png

 

With filter

leoohenrii_1-1667337770757.png

 

Thx 😁

1 ACCEPTED SOLUTION
ppm1
Solution Sage
Solution Sage

Looks like you are cross highlighting and not filtering. You can change the behavior between visuals with the Edit Interactions feature.

Change how visuals interact in a report - Power BI | Microsoft Learn

Pat

Microsoft Employee

View solution in original post

2 REPLIES 2
ppm1
Solution Sage
Solution Sage

Looks like you are cross highlighting and not filtering. You can change the behavior between visuals with the Edit Interactions feature.

Change how visuals interact in a report - Power BI | Microsoft Learn

Pat

Microsoft Employee

Exactly!

I knew from the beginning, I was testing the guys haha!

Joking aside, thank you, it really was a lack of attention.

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.