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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
lichun198201977
Microsoft Employee
Microsoft Employee

Incorrect results when using more than one scalar expressions in ISAFTER()

Hi, 

This is the raw table "Attempt1Table" I manually input:

                                                    1.png

ISAFTER() worked well when using only one expression:

 

                                                    2.png

 

                                                    3.png

However, the incorrect data appeared when using the two scalar expressions together:

                                                   4.png

 

Is it a known issue? How to solve it?

                      

 

 

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

From https://dax.guide/isafter/, the second column, in your example State, is only compared when the first column , Country, has the same value as the comparison.

If you want different behaviour you will need to create a different filter condition that uses logic which matches your use case.

View solution in original post

3 REPLIES 3
johnt75
Super User
Super User

From https://dax.guide/isafter/, the second column, in your example State, is only compared when the first column , Country, has the same value as the comparison.

If you want different behaviour you will need to create a different filter condition that uses logic which matches your use case.

Thanks a lot, I found the related comment in the code.

BTW, is there any plan to add it to the corresponding Microsoft documentation? I believe that there should be a significant number of readers confused by it.

I agree, it should be made clearer in the official documentation although their example does hint at the behaviour.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.