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

How to modify if maxx is not applicable to *

I have the following DAX in order to see the last result have * or not. If last result have *, then current result should also have *, in order to make the * in last result can be in the same row of current result. However, what i am looking for is *, but not a value. So, MAXX seems not applicable. Do anyone know what i should modify?

 

transformation star = var _date1 = MAX('Q25_TOP5'[Survey Close Date])
var _name = FIRSTNONBLANK('Q25_TOP5'[Facility Name + ID],"")
var _date2 = MAXX(FILTER(filter('Q25_TOP5','Q25_TOP5'[Facility Name + ID]=_name),'Q25_TOP5'[Survey Close Date]<_date1),'Q25_TOP5'[Survey Close Date])
var _star = MAXX(FILTER(Q25_TOP5,Q25_TOP5[Survey Close Date]=_date2),Q25_TOP5[Star(last)])
RETURN IF(Q25_TOP5[Current/last]="Current Survey" && _star="*","*","")
2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Based on what I got. You can get latest value using these blogs.

 

https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0

https://amitchandak.medium.com/power-bi-get-the-sum-of-the-last-latest-value-of-a-category-f1c839ee884e

 

and then you can check for * value

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

but It seems that the link is all about values, instead of non-value, like * in my case. 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Kudoed Authors