Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi ...
I need to make a line chart with trend lines. Below is a record (sample data) with the accumulated amount...
For December, there will be a month 13 (audited account).
How can I only display only last 3 recent years (full year)... If the date (December) has month 13, the display should pick up that month instead of month 12...
Below is the measure that I have currently to show the data for KPI Card:
Receivables (RM) =
VAR _Result = CALCULATE(
SUM( fin_table[Receivables (M)] ),
fin_table[Date] = MAX( fin_table[Date] ) && ( fin_table[Month] )
)
RETURN
IF(ISBLANK(_Result),"-",_Result)
Your help is highly appreciated....
Thank you.
Regards,
NickzNickz
@NickzNickz as per my understanding you need the last 3 year data before 2023.
For E.g current year is 2023 and you need three years of data for 2020,2021 and 2022. if I am not wrong.
@NickzNickz Please try below Dax:
I have tested based on your recommendation and the result shows only data for 2023.
Regards,
NickzNickz
@NickzNickz you want to filter out the current year and display only before the current year data right?
@NickzNickz I hope this helps you. Thank You!!
CALCULATE([Total Sales],'Date'[Year]<MAX('Date'[Year])).
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 17 | |
| 8 | |
| 7 | |
| 6 |