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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
MK_Process
Helper I
Helper I

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 @MK_Process 

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 @MK_Process 

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 @MK_Process 

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
Community Champion
Community Champion

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.