Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi, I have two types of projects 1. Agile 2. Software. The below formulas apply to both the Project types. Initially our projects took 3 months to complete but lately it was taking 6 months so I wanted to show the 3 months data in 6 months and took an expert's help from the community. But the issue now I'm facing is I want to show the data from 3 months to 6 months for Agile projects only not for Software projects since they take 3 months to complete, so the old formula (3 months formula) works fine for Software projects. Could anyone please suggest if there is any DAX formula or IF condition that we can apply to show 6 months formula for Agile and 3 months formula for Software. For Agile projects we take 60 Hours and for Software projects we take 6 hrs to complete
FYI - I need to show both Agile and Software projects types in the same stacked column chart so I cannot add two different tables in PowerBI and need one combined formula to suffice both the needs.
Sample table for your reference
| Id | Title | Supply type per_ | Projects | Status | LeadTime | HoursTotal | Date | hoursweek | hourspending1 | nextmonth1 | hourspending2 | nextmonth2 | workhours1 | workhours2 | workhours3 | Date Completed |
| 1 | A | Stragetic | Agile | active | 12 | 60 | 1/9/2024 | 5 | 40 | 2/9/2024 0:00 | 20 | 3/9/2024 0:00 | 10 | 10 | 10 | |
| 2 | B | Operational | Software | active | 1 | 6 | 2/15/2024 | 1 | 3 | 3/15/2024 | 3 | 4/15/2024 | 3 | 3 | 0 |
3 months Formula:
@royalty123 we can work it out with a dynamic calculation.
check and let us know if it works.
calculated column:
LeadTime =
IF ( Projects[ProjectType] = "Agile", 12, 3 )
use this in the visual.
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 47 | |
| 32 | |
| 29 | |
| 16 | |
| 15 |
| User | Count |
|---|---|
| 60 | |
| 58 | |
| 39 | |
| 24 | |
| 23 |