Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello everybody,
I am currently struggling to implemant a "causal analysis" and I would like to hear your tips, any idea would be greatly appreciated.
First let me explain :
I have a table containing all production data for years. Each line is a transformation of a product. A product may be called many times in the table if it is transformed many times.
I have implemented an historical stock movement in a measure (I hid few column and measure name for confidentiality) :
Historique_Stocks =
CALCULATE(
SUM('Calendrier'[ ]),
FILTER(
ALLSELECTED('Calendrier'[Date]),
ISONORAFTER('Calendrier'[Date], MAX('Calendrier'[Date]), DESC)
)
)
-
CALCULATE(
SUM('Calendrier'[ ]),
FILTER(
ALLSELECTED('Calendrier'[Date]),
ISONORAFTER('Calendrier'[Date], MAX('Calendrier'[Date]), DESC)
)
)
+
CALCULATE(
SUM(Calendrier[ ]),
FILTER(
ALLSELECTED('Calendrier'[Date]),
ISONORAFTER('Calendrier'[Date], MAX('Calendrier'[Date]), DESC)
)
)This measure is reporting the evolution of stock, here is what can be displayed with it :
Then in a drillthrough I have a matrix summarizing each day of the month selected, with :
Column 1 Date
Column 2 Deviation from the objective
Column 3 Tons
Column 4 Stock available in the morning
Column 5 A justification of the deviation if known :
It can be "breakdown", "not enough stocks" etc.
My issue is with the measure "Justification" : it is just a lot of IF (for example, if stock < objectives then "not enough stocks" etc.). But is has to be a measure because most of the data compared in it are complex measures using "calculate" (as Historique_Stocks shown above) and therefore not doable in a calculated column.
I would like to print a pareto to plot the top of "Justification" and number of occurences in the drillthrough, but cannot do it for now since it is a measure. Any idea to change my set and plot this pareto ?
Thanks a lot for your help,
Regards
Hi @Slim- ,
As you say, it can be tricky to plot Pareto charts directly using metrics. Try creating a calculated table that aggregates the data at the granularity required for a Pareto chart.
Best Regards,
Adamk Kong
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 103 | |
| 80 | |
| 58 | |
| 51 | |
| 46 |