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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Date Table for For the Day / For the Month

Hi

We have the colum name " Closing Date ".

Based on this date can we create a Data Table for " For the Day". and "For the Month".

WHich means the data what we need is from the date list, everyday it should show the data from for the day and for the month.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous 

You can get the data for the day or the month by measure.

Due to I don't know your table, I build a sample table with Close Date column and Data column to have a test.

Build a Calendar table by dax.

Slicer = ADDCOLUMNS(CALENDARAUTO(),"Month",MONTH([Date]))

Measure:

For the Day = 
Var _SelDate = SELECTEDVALUE(Slicer[Date])
Return
SUMX(FILTER('Table','Table'[Close Date]= _SelDate),'Table'[Data])
For the Month = 
Var _SelMon = SELECTEDVALUE(Slicer[Month])
Return
SUMX(FILTER('Table',MONTH('Table'[Close Date])= _SelMon),'Table'[Data])

Then build two table visuals and slicers to show the result.

For the day:

2.png

For the Month:

1.png

You can download the pbix file from this link: Date Table for For the Day / For the Month

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.

 

Best Regards,

Rico Zhou

Anonymous
Not applicable

Hi @Anonymous 

You can get the data for the day or the month by measure.

Due to I don't know your table, I build a sample table with Close Date column and Data column to have a test.

Build a Calendar table by dax.

Slicer = ADDCOLUMNS(CALENDARAUTO(),"Month",MONTH([Date]))

Measure:

For the Day = 
Var _SelDate = SELECTEDVALUE(Slicer[Date])
Return
SUMX(FILTER('Table','Table'[Close Date]= _SelDate),'Table'[Data])
For the Month = 
Var _SelMon = SELECTEDVALUE(Slicer[Month])
Return
SUMX(FILTER('Table',MONTH('Table'[Close Date])= _SelMon),'Table'[Data])

Then build two table visuals and slicers to show the result.

For the day:

2.png

For the Month:

1.png

You can download the pbix file from this link: Date Table for For the Day / For the Month

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

speedramps
Super User
Super User

Please watch this video about calendar tables and then use a day or month offset = 0 to just select the current day or all the days for the current month as required.

Watch this video 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

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.