Forum Discussion
Pareto table
Dear all!
I need you support please!
I've been working with this code to make a Pareto:
https://www.daxpatterns.com/abc-classification/
I've been applying this solution:
"
And I've two doubts:
1 - How can I insert a paremeter to make it dinamic? I'd like to select from: Family, client and so on dinamically.
2 - To use the ABC as a filter y make a new table but when I try to relationate it with the Client table I obtain an error: Circular dependence. Do you know why?
4 Replies
- Luis_CastonHelper III
Dear all,
I've seen that to make it dinamyc an avoid this error: Calculation error in measure Param: Column Param is part of composite key, but not all columns of the composite key are included in the expression or its dependent expression.I'm following this example: Error solution and I'm changing the beginning as follows:
ABC Class =IF (SELECTCOLUMNS(SUMMARIZE('Parámetro', 'Parámetro'[Parámetro], 'Parámetro'[Parámetro Campos]), at the example indicates here "Parameter[Parameter]" but I'm not able to type it.
Do you know why? - amitchandakSuper User
Luis_Caston , Please check out my approach, I have used numeric parameter at one place to make it dynamic
Power BI Window: Pareto Analysis Again, 80% of sales, Order by Measure when REL position is used: https://youtu.be/GpoITi_tRIw
Power BI ABC Analysis using Window function, Dynamic Segmentation: https://youtu.be/A8mQND2xSR4
- Luis_CastonHelper III
Dear amitchandak !
Thank you for your support.
I've followed the example and ok I've figures the second point is: How do I make it dinamical?
At this part of the code I've tested it by client and I works:Net Count ABC =SUMX( 'ABC Bucket',CALCULATE(SUMX(FILTER(VALUES(Cliente[Cliente]),[ABC V2 Luis] = MAX('ABC Bucket'[ABC])),[Total Venta Analitico])))But If if change "Cliente[Cliente]" by a 'Parameter[Parameter] I obtain the next error:Calculation error in measure [Net Count ABC]: Column [Parameter] is part of composite key, but not all columns of the composite key are included in the expression or its dependent expression.
- Luis_CastonHelper III
Following this approach I've read about the error with the paremeter: Calculation error in measure ‘Sales'[Selection]: Column [Parameter] is part of composite key, but not all columns of the composite key are included in the expression or its dependent expression.
Do you know How I can replace this Hasonvalue: "ABC Class =
IF (
HASONEVALUE(Cliente[Cliente])," to avoid the error?