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

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

Reply
NadeemAhamed
Helper V
Helper V

Table value as on selected month in slicers

Dear Community..

Good Day..!

 

I have one table with columns such as month,previous year,plan,plan cumulative,actual & actual cumulative.

Iam going to have one slicer for month.

Is it possible to bring the table values as on selected month and actual cumulative values should be based on actual column. 

 

NadeemAhamed_0-1710389560867.png

 

Thank you for your adavance. 

 

2 REPLIES 2
amitchandak
Super User
Super User

@NadeemAhamed , You can get cumulative sales using these measure with help from a date table

 

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(all('Date'),'Date'[date] <=max('Date'[date])))

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected(date),date[date] <=max(date[Date])))

Cumm Based on Date = CALCULATE([Net], Window(1,ABS,0,REL, ALL('date'[date]),ORDERBY('Date'[date],ASC)))

Cumm Based on Date = CALCULATE([Net], Window(1,ABS,0,REL, ALLSELECTED('date'[date]),ORDERBY('Date'[date],ASC)))

 

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

 

Time Intelligence, Part of learn Power BI https://youtu.be/cN8AO3_vmlY?t=27510
Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Custom Period till date: https://youtu.be/aU2aKbnHuWs&t=145s

 

Continue to explore Power BI Window function Rolling, Cumulative/Running Total, WTD, MTD, QTD, YTD, FYTD: https://youtu.be/nxc_IWl-tTc
https://medium.com/@amitchandak/power-bi-window-function-3d98a5b0e07f

 

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

Dear @amitchandak 

 

Thank you for your valuable time to read and response.

 

Sorry to say this, iam not able to relate this measures to my requirement and table. 

 

My table say financial data from April - March

If user has selected May month means the Graphs should show the data from April- May.  

 

  1. Assume i have selected Aug month from the silcers. 

I need to show the table data in graphs as on selected month.

NadeemAhamed_0-1710412382287.png

 

2. Assume i have selected Sep month from the silcers. 

I need to show the table data in graphs as on selected month.

NadeemAhamed_1-1710412527935.png

 

 

Prevosly i have added another column for monthly but if i have added then the table rows become 12*12=144 rows 

but that table structure is not accepting. 

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