Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 68 | |
| 60 | |
| 45 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 108 | |
| 107 | |
| 39 | |
| 30 | |
| 26 |