Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi community.
I have data like below. I am trying to create a measure starting with if and reference is text column. ( version = Actuals, forecast, budget). DAX is not allowing me to use the if.
I want to create measure for HC when version is actuals it should be SUM (HC), otherwise Sum(HC)-Sum(hires) for that period. I have data like this for 1 year duration.
| Period | Type | HC | New hires | Version |
| 1 | AB | 1 | 1 | Actuals |
| 1 | AD | 1 | 1 | forecast |
| 1 | AE | 1 | 0 | budget |
Hi @Sairam_vasa
What do you mean by "DAX is not allowing me to use the if"? Can you share a screenshot?
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |