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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

DAX HELP

Hello World,
Capture.PNG

 

 

 

I want to create some logical functions in Dax. 
I have my dataset from 2016-2022. I have a column Prior Payment Mode and After Payment Mode. Here Prior Payment Mode and After payment mode is a month to month comparison. For example Jan 2017 prior payment mode and Feb 2017 After Payment mode. In this way i have data till Oct 2022. 
I have created another 2 new column i.e. Year and Month. Here, Year and month columns are related to After Payment mode Year and Month. 

Now , my main focus here is 2 mode which is special reversal and problem mode. I want to identify , which prior payment mode they were on before they turn to special reversal and Problem. 

 

Please help Thank you

1 REPLY 1
FreemanZ
Super User
Super User

hi @Anonymous 

no sure about your exact expecation, if we simplify your data, you may create a new table with this:

Table =
FILTER(
    TableName,
    TableName[After] in {"SpecialReversal", "Problem"}
)
 
I tried and It worked like this:
FreemanZ_0-1670057523847.png

 

the simplified dataset,

FreemanZ_1-1670057553162.png

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.