Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon'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.
I want to create a conditional column based on Seller column and Date column. I want to place a seller in a different unit. For example, seller named Joe was in S1 unit from January to March but then got migrated into S2 unit starting from April. But in the database, Joe is still in S1. I want to create a new column to segregate Joe into different unit.
Here is an example of the column (New Unit) that I want to create:
I'm having a trouble with dates and if else statements with DAX. Is there any other way that I can pull this off?
Solved! Go to Solution.
New Unit = IF( table[Date] < DATE(2019,4,1) && table[Seller] = "Joe", "S1" , table[Unit])
New Unit = IF( table[Date] < DATE(2019,4,1) && table[Seller] = "Joe", "S1" , table[Unit])
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
145 | |
87 | |
66 | |
52 | |
45 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |