Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
CleliaComes
Helper I
Helper I

Matrix with figures this year / last year

Hi,

 

I want to show the results of 2020 and the budget figures of 2021 in the same matrix.

Saldi resultaat = table with data of 2020 - 2021 

Gebudgeteerd = table with data of 2021

Is it possible to use a formular to filter on table 'Saldi resultaat' to show only the figures of 2020?

Now the matrix shows the figures for 2020 + 3 months of 2021. 

Formular table saldi resultaat = 

Saldi resultaat = 'GL PL'[Credit]-'GL PL'[Debet]
 

 

CleliaComes_0-1618324331747.png

 

 

Thanks in advance,

Kind regards,

Clélia

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@CleliaComes , You can use time intellignece , select 2021 in slicer

 

YTD Budget= CALCULATE(SUM(Budget[Budget Amount]),DATESYTD('Date'[Date],"12/31"))
Last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-1,Year),"12/31"))

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
CleliaComes
Helper I
Helper I

Thanks a lot! It works. 🙂 

Kr

Clélia

amitchandak
Super User
Super User

@CleliaComes , You can use time intellignece , select 2021 in slicer

 

YTD Budget= CALCULATE(SUM(Budget[Budget Amount]),DATESYTD('Date'[Date],"12/31"))
Last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-1,Year),"12/31"))

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.