This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
How can write in DAX
IF [employment type] = "Full Time " && Start Date < [2022/07/01] then it is "20" ********(if employee started before july )*****
IF [employment type] = "Full Time " && Start Date > [2022/07/01] then it is (1.666 * Every MOnth) **(If employee started after July)**
IF [employment type] = "Part Time " && Start Date < [2022/07/01] then it is 12, ***(if employee started before july )**
IF [employment type] = "Part Time " && Start Date > [2022/07/01] then it is (1 * Every Month )
Solved! Go to Solution.
@heygowtam , Use Switch with True option in DAX , if power query use nested if then else
Switch(True(),
[employment type] = "Full Time " && [Start Date] < [2022/07/01] , "20" ,
[employment type] = "Full Time " && [Start Date] > [2022/07/01] , 1.66* Datediff([Start Date] , today(),month) ,
// Add others
)
Switch-Case statement of #PowerBI: https://www.youtube.com/watch?v=gelJWktlR80&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=56
@heygowtam , Use Switch with True option in DAX , if power query use nested if then else
Switch(True(),
[employment type] = "Full Time " && [Start Date] < [2022/07/01] , "20" ,
[employment type] = "Full Time " && [Start Date] > [2022/07/01] , 1.66* Datediff([Start Date] , today(),month) ,
// Add others
)
Switch-Case statement of #PowerBI: https://www.youtube.com/watch?v=gelJWktlR80&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=56
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 26 | |
| 23 | |
| 22 | |
| 13 |
| User | Count |
|---|---|
| 61 | |
| 47 | |
| 27 | |
| 23 | |
| 18 |