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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Running total KPI

Hello 

 

I'm creating a report with running totals from this year. I use a relative date-slicer. 

I created two measures until date. If I put them in a KPI, it will display infinity at the target. 

Note: omzet = revenue 

 

Omzet PY.**bleep** = if(LASTDATE(Datum[Datum]) > TODAY(), BLANK(), CALCULATE([Omzet PY],FILTER(ALLSELECTED(Datum),Datum[Datum] <= MAX(Datum[Datum]))))
 
Omzet **bleep** = IF(LASTDATE(Datum[Datum]) > TODAY(), BLANK(), CALCULATE(SUM(Waardepost[Omzet]),FILTER(ALLSELECTED(Datum),Datum[Datum] <= MAX(Datum[Datum]))))

 KPI.png

 

 

I already tried it on a different way. Just with creating new measures to calculate my own %. Just one problem, I just want the number of the last date (today). I tried a couple of techniques but none of them worked. 

 

tabel.png

 

 

So my two questions: 

 

1) Can i create a KPI with RT ?

2) Is it possible to just selected the lastest data from the table. 

 

 

Kind regard

Soler

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

If so you could use TODAY() function to get today's date and use EDATE() or DATEADD() function to get next year today's date.

Measure = CALCULATE(SUM('Table'[value]),FILTER('Table','Table'[date]=TODAY()))

Measure 2 = CALCULATE(SUM('Table'[value]),FILTER('Table','Table'[date]=EDATE(TODAY(),+12)))

10.PNG

 

Best Regards,

Jay

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous ,

 

I haven't heard that we can't create a KPI with RT. And when you saying " just select the latest data from the table" are you meaning default select latest date in the slicer?

 

Best Regards,

Jay

Anonymous
Not applicable

If today is 01/02, I want the see the difference between RT 01/03/2021 and 01/03/2022.  When I load tomorrow new data. I want the see the difference between RT 02/03/2021 and 02/03/2022. 

 

 

Anonymous
Not applicable

Hi @Anonymous ,

 

If so you could use TODAY() function to get today's date and use EDATE() or DATEADD() function to get next year today's date.

Measure = CALCULATE(SUM('Table'[value]),FILTER('Table','Table'[date]=TODAY()))

Measure 2 = CALCULATE(SUM('Table'[value]),FILTER('Table','Table'[date]=EDATE(TODAY(),+12)))

10.PNG

 

Best Regards,

Jay

Anonymous
Not applicable

Thanks for the solution! 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors
Top Kudoed Authors