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
AlanP514
Post Patron
Post Patron

Dax issue

AlanP514_0-1655213773733.png

Hai Can you help me to find complete this dax.
I was trying to create version flag but unfortunately i am getting this error, please help me to correct this dax




3 REPLIES 3
v-kkf-msft
Community Support
Community Support

Hi @AlanP514 ,

 

Not sure what you want the output to be, but in the IF function, the first argument must be any value or expression whose calculation results in TRUE or FALSE, like this.

 

Version Month Selection Flag =
VAR Maxversion =
    MAX ( 'T1 Data Base'[Version Flag] )
VAR Mindate =
    CALCULATE (
        MIN ( 'T1 Data Base'[Attribute] ),
        FILTER (
            ALLSELECTED ( 'T1 Data Base' ),
            'T1 Data Base'[Version Flag] = Maxversion
        )
    )
RETURN
    IF ( MAX ( 'T1 Data Base'[Attribute] ) >= Mindatee, 1, 0 )

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

tamerj1
Super User
Super User

Hi @AlanP514 
You missed to close the FILTER bracket after Mindate variable

Hai @tamerj1 
Thank you for your quick response, But I already closed the bracket 
Can you please rewrite this formula based on your perception

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 Solution Authors
Top Kudoed Authors