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
Anonymous
Not applicable

Requirement is to pick the duration where state is equal to "Closed"

Requirement is to pick only yellow highlighted rows where state is equal to "Closed" and if state would change in the next row then we don't need to consider Closed State.
Please help with DAX

amty63_0-1701256943397.png

 

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

You can try the following methods.

Measure = IF(SELECTEDVALUE('Table'[STATE])="Closed","Yellow")

vzhangti_0-1701398886323.pngvzhangti_1-1701398900807.png

Is this the result you expect? If this does not solve your problem, please provide more information.

 

Best Regards,

Community Support Team _Charlotte

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

1 REPLY 1
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

You can try the following methods.

Measure = IF(SELECTEDVALUE('Table'[STATE])="Closed","Yellow")

vzhangti_0-1701398886323.pngvzhangti_1-1701398900807.png

Is this the result you expect? If this does not solve your problem, please provide more information.

 

Best Regards,

Community Support Team _Charlotte

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

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.