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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
DemoFour
Responsive Resident
Responsive Resident

Dax to get a column to return days linked to a set code

Hi, I am completely new to all of this! So please bare with me.

 

I have table as follows

 

Property Code - Total Period Charge - VOID Code - VOID Description - VOID Phase Sequence - First Phase Start Date - Last Phase end Date

 

I added an additional column using the following:

 

(Column) Days Void = 1.* 'Void Phase analyses'[Last Phase End Date] - 'Void Phase analyses'[First Phase Start Date]

 

This worked and now my new column tells me how many days void there has been.

 

So my questions is:

 

I want a column to tell me the number of days Void for each of the VOID Code categories.

 

In the Void Categories column is different codes for  Read to Let, Minor Repair, Major Repair, Do Not Use etc.

 

but I cant write something that tells me if [VOID Code] = MINRP (or MAJRP or DNU etc.) then [Last Phase End Date] - [First Phase End Date] = the days it was void (according to the reason it was void).

 

any help in leading me in the right direction would be much appreciated.

 

Kind regards

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@DemoFour,

 

You may take a look at IF Function and IN Function.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@DemoFour,

 

You may take a look at IF Function and IN Function.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.