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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
JustinDoh1
Post Prodigy
Post Prodigy

How to create value for Month Index (to display incomplete month)?

I am sharing my Pbix file here.

 

I am trying to show the values inside Dec. 2021 with a different color so that user could distinguish that this month is not complete.

 

JustinDoh1_0-1638834111556.png

 

I Googled and found this site that explains how to do it, but I am stuck how I create Month Index:

It appears that I cannot pursue without getting some type of key value of each month to create logic further.

 

Bottom are two screenshots from the same site:

 

JustinDoh1_1-1638834283014.png

JustinDoh1_2-1638834434056.png

How do we create the value for Month Index?

 

Thanks for help.

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@JustinDoh1 , Create one of the measure  and use that in conditional formatting using files value option

 

if( max('Date'[Month]) = format(Today(), "MMM YY" ), "Yellow", "white")

 

or

if( eomonth(max('Date'[Date]),0) = eomonth(Today(), 0 ), "Yellow", "white")

 

refer

How to do conditional formatting by measure and apply it on pie?: https://youtu.be/RqBb5eBf_I4

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@JustinDoh1 , Create one of the measure  and use that in conditional formatting using files value option

 

if( max('Date'[Month]) = format(Today(), "MMM YY" ), "Yellow", "white")

 

or

if( eomonth(max('Date'[Date]),0) = eomonth(Today(), 0 ), "Yellow", "white")

 

refer

How to do conditional formatting by measure and apply it on pie?: https://youtu.be/RqBb5eBf_I4

@amitchandak Thank you so much for your prompt response and help.

I have a question.

So, what is logic here?

I think I got the first part, but I am not sure about the second part/logic.

format(Today(), "MMM YY" ) or eomonth(Today(), 0 )   

Thanks.

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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