Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi,
Relative noobie here. I have checked many existing posts and videos but I am not getting how to approach the problem.
I have 2 tables as below, with one-to-many from LOADS.load to HOLDINGS.load in order to define the Previous Load given a Load.
And this is what I would like to see in a Matrix or Table:
I realize I need to do something at the Query level (new column or some DAX expression) but I don't understand how I can add a column to my Holdings table that says something like:
Previous Value = HOLDINGS.Value where current.Load = LOADS.Previous Load and current.Holding = HOLDINGS.Holding
And then calculating the Chg would be easy enough (Calculated column).
Please help!
Solved! Go to Solution.
Simple enough if the rule of "previous load" persists; even the LOADS table is redundant. (rule of "previous load": the max Load less than current Load)
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
Simple enough if the rule of "previous load" persists; even the LOADS table is redundant. (rule of "previous load": the max Load less than current Load)
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
Even though all solutions posted work, I like this one because I don't have to create the Load table and entries - even though I didn't ask for this.
Thanks all for helping me out.
Total = SUM(HOLDINGS[value])
Chg = VAR _prev=CALCULATE([Total],TREATAS(VALUES(LOADS[previous load]),HOLDINGS[load]),REMOVEFILTERS(LOADS[load])) RETURN DIVIDE([Total]-_prev,_prev)
Hi @dbiduk ,
With the given data, create two calculated columns
Previous Load by holding =
CALCULATE (
MAX ( 'Table'[Load] ),
FILTER (
ALLEXCEPT ( 'Table', 'Table'[Holding] ),
'Table'[Load] < EARLIER ( 'Table'[Load] )
)
)
Previous value by holding =
CALCULATE (
SUM ( 'Table'[Value] ),
FILTER (
ALLEXCEPT ( 'Table', 'Table'[Holding] ),
'Table'[Load] = EARLIER ( 'Table'[Previous Load by holding] )
)
)
Use the second column to create a % change measure.
Note: the look you want for your matrix is not currently achievable out of the box ( will require advanced DAX)
Please see attached pbix for reference.
Actually, this one doesn't need the LOAD table either. I kinda prefer this one becuase it adds the new data as calculated columns, not measures. But, again, I am new so what do I know :-).
Thanks!!
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |