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 have the following IF statement in Excel "=IF(D2<14,"(1) <14 day",IF(D2<21,"(2) 14-21 days",IF(D2<30,"(3) 21-30 days",IF(D2<45,"(4) 30-45 days",IF(D2<60,"(5) 45-60 days",IF(D2<90,"(6) 60-90 days",IF(D2<120,"(7) 90-120 days","(8) >120 days")))))))". How would I go about creating this statement in PowerBI?
Thanks,
David
Solved! Go to Solution.
Based on my test, we can use the steps below in power bi.
Column = IF(Table1[test]<14, "(1) <14day",IF(Table1[test]<21, "(2) 14-21 days",IF(Table1[test]<31, "(3) 21-30 days", IF(Table1[test]<46, "(4) 30-45 days",IF(Table1[test]<61,"(5) 45-60 days",IF(Table1[test]<91, "(6) 60-90 days",IF(Table1[test]<121, "(7) 90-120 days", IF(Table1[test]>120, "(8) >120 days"))))))))
Then we can get the result showing the statement:
For more information, please check the pbix as attached.
Regards,
Lydia
Based on my test, we can use the steps below in power bi.
Column = IF(Table1[test]<14, "(1) <14day",IF(Table1[test]<21, "(2) 14-21 days",IF(Table1[test]<31, "(3) 21-30 days", IF(Table1[test]<46, "(4) 30-45 days",IF(Table1[test]<61,"(5) 45-60 days",IF(Table1[test]<91, "(6) 60-90 days",IF(Table1[test]<121, "(7) 90-120 days", IF(Table1[test]>120, "(8) >120 days"))))))))
Then we can get the result showing the statement:
For more information, please check the pbix as attached.
Regards,
Lydia
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
106 | |
75 | |
44 | |
39 | |
33 |
User | Count |
---|---|
165 | |
90 | |
65 | |
46 | |
43 |