Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi Guru's,
Am facing a issue in geeting maximum from the previous available values in the the column
EG:
In the Column E (Total) where ever the rows are blank, i need to populate maximum value with in the Column E(Total) until that calendar Key , Ex: in Row 18 should be populated with 3436 as this is maximum value for the calendar key 20200201(Feb 2020), in the same way , row 22 , 23 and 24 should be populated by 3524. Can you please help me on this.
Kind Regards,
Dimpu
Solved! Go to Solution.
Hi @Anonymous
You can also create a Calculated column.
Fill with Previous Month =
IF (
ISBLANK ( 'Table'[Total] ),
CALCULATE (
MAX ( 'Table'[Total] ),
FILTER (
ALL ( 'Table' ),
NOT ( ISBLANK ( 'Table'[Total] ) )
&& 'Table'[CalendarKey] < EARLIER ( 'Table'[CalendarKey] )
)
),
'Table'[Total]
)
The result looks like this:
For more details, you can refer the attached pbix file.
Best Regards
Caiyun Zheng
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
You can also create a Calculated column.
Fill with Previous Month =
IF (
ISBLANK ( 'Table'[Total] ),
CALCULATE (
MAX ( 'Table'[Total] ),
FILTER (
ALL ( 'Table' ),
NOT ( ISBLANK ( 'Table'[Total] ) )
&& 'Table'[CalendarKey] < EARLIER ( 'Table'[CalendarKey] )
)
),
'Table'[Total]
)
The result looks like this:
For more details, you can refer the attached pbix file.
Best Regards
Caiyun Zheng
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
If months within the year are in ascending order and the figures in the total column are also in ascending order, then the Data > Fill Down option in the Query Editor works ver well.
Hope this helps.
@Anonymous
I'd suggest doing it in Power Query. This calculation belongs to Power Query, not DAX.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
124 | |
79 | |
49 | |
38 | |
37 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |