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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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