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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Kumarun
Helper I
Helper I

Dax

Need to display dates from the present month and year up to what are the dates we have. without slicer.
 
Ex: Present month is June so,


June 2022, July 2022.....................

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @Kumarun ,

According to your description, here's my solution, create a measure.

Check =
IF ( MAX ( 'Table'[Month] ) > EOMONTH ( TODAY (), -1 ), 1 )

Put it in the visual filter and select its value to 1, 

vkalyjmsft_0-1655195192023.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

6 REPLIES 6
v-yanjiang-msft
Community Support
Community Support

Hi @Kumarun ,

According to your description, here's my solution, create a measure.

Check =
IF ( MAX ( 'Table'[Month] ) > EOMONTH ( TODAY (), -1 ), 1 )

Put it in the visual filter and select its value to 1, 

vkalyjmsft_0-1655195192023.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

 

Hai V-kalyj

Thank you so much.
In matrix visualization, I have row-wise country and column-wise dates.
But here need to display only current month's value only. not other months.
Once take values into the values section it's taking all the months.

I need to display the present month values only.



Hi @Kumarun ,

According to your description, try to create a measure for the value, put the measure in the Values section.

Measure =
IF ( MONTH ( MAX ( 'Table'[Month] ) ) = MONTH ( TODAY () ), [Value], BLANK () )

Best Regards,
Community Support Team _ kalyj

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

mh2587
Super User
Super User

Column = IF([Date]>TODAY(),[Date],BLANK())
//Create new column 
//try this

Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



mh2587
Super User
Super User

Just define the condition in dax like below
   = date >= TODAY()


Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



this formula only checks true or false. But I need to display the dates from the present month up to  

Kumarun_0-1654606108885.png

like this

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.