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.
I hope I am in the correct forum. I have an excel table that I have loaded into my data model. The topic is, say butterflies.
The "Stage" column is a calculated column using an If statement and based on the last isblank cell. What I would like to do is to write a measure that calculates the StageDays based on Stage--which would be today - the last filled-in-date. Can you help me figure out how to do this? Thanks.
| Specimen | EggDate | LarveDate | PupeDate | Stage | StageDays |
| 01245 | 4/6/2023 | 5/7/2023 | 6/3/2023 | Pupe | |
| 0357 | 2/4/2023 | Egg | |||
| 0934 | 2/9/2023 | 5/6/2023 | Larve | ||
Solved! Go to Solution.
If you want to keep your data in Excel you will have to hard code the order of the column checks.
In Power BI we would ask you to unpivot your data, and to provide a reference table with the stage sequence index.
If you want to keep your data in Excel you will have to hard code the order of the column checks.
In Power BI we would ask you to unpivot your data, and to provide a reference table with the stage sequence index.
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 | |
| 7 | |
| 7 |