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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Slicer to only display END of Month

Hello, 

 

I currently have a table derived from a dataset that has values for every day of the month. However, the business is only interested in the EOM values as shown:

soochoilondon_0-1662213932648.png

- How can I set a slicer, for example, that only has the end-of-month dates available?
- Is there any way that this table will automatically update once the end of September is reached?

 

I already have a date table but not sure how to link it etc.

Thank you! 

Soo

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@Anonymous In your date table, create a column:

EOM = EOMONTH([Date],0)

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

@Greg_Deckler Thank you for your help. 

 

I have added the EOM to the date column (which is linked to the dataset) but it seems it is adding up the total for the month rather than showing the value for the last date of the month (or latest as in September):

 

Below, both tables have been filtered by the slicer.

 

The second one is correct and the only difference is that the end-of-month dates have been filtered on the filter side panel which I would like to avoid as this would be too manual.

soochoilondon_0-1662219297467.png

 

@Anonymous In your measure, just have it sum the rows where the date matches the EOM column. Like:

SUMX(FILTER('Table',[Date] = [EOM]),[Value])


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Greg_Deckler
Super User
Super User

@Anonymous In your date table, create a column:

EOM = EOMONTH([Date],0)

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors