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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Praveen0303
New Member

Dax

Based on the quater selection dynamically comments also need to change,if select all quater it's shows Quater 3 comments how to write Dax condition 

1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi @Praveen0303 ,

 

try to plot a visual with a measure like this:

 

Measure = 
IF(
    COUNTROWS(VALUES(data[Qtr]))=COUNTROWS(ALL(data[Qtr])),
    MAXX(FILTER(data, data[Qtr]="Q3"), data[Comments]),
    MAX(data[Comments])
)

 

 

it worked like:

FreemanZ_0-1729672973272.png

 

View solution in original post

1 REPLY 1
FreemanZ
Super User
Super User

hi @Praveen0303 ,

 

try to plot a visual with a measure like this:

 

Measure = 
IF(
    COUNTROWS(VALUES(data[Qtr]))=COUNTROWS(ALL(data[Qtr])),
    MAXX(FILTER(data, data[Qtr]="Q3"), data[Comments]),
    MAX(data[Comments])
)

 

 

it worked like:

FreemanZ_0-1729672973272.png

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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