Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
m4xon
Helper I
Helper I

Gant chart based on matrix table with progression

Hello,

I'm working on the Gantt chart based on the matrix table and would like to achive something like that with the colours, so in general from the first date to second I have one colour and then from second to third another one:Screenshot 2023-08-31 104831.png

At the moment I have a measure that gives me 1 numbers during the whole project, but I was wondering how to divide it into several numbers like: first stage = 1, second stage = 2, then I would be able to dd conditional formatting:

 

CF Gantt = 
VAR StartDate =
    CALCULATE (
        MIN ( dimE[Epic Start Date] ),
        REMOVEFILTERS ( 'dimDate' )
    )
VAR GoDate =
    CALCULATE (
        MIN ( dimE[Epic Go/NoGo Date] ),
        REMOVEFILTERS ( 'dimDate' )
    )
VAR EndDate =
    CALCULATE (
        MIN ( dimE[Epic End Date] ),
        REMOVEFILTERS ( 'dimDate' )
    )
VAR ProjectPeriod =
    MIN ( 'dimDate'[Date] ) >= StartDate
        && MIN ( 'dimDate'[Date] ) <= EndDate
VAR Result =
    IF (
        ISBLANK ( StartDate ),
        BLANK (),
        IF (
            ProjectPeriod,
            1
            )
        )
RETURN
    Result

 

 
Data model look like this:
Screenshot 2023-08-31 105210.png

Is it even possible?

1 REPLY 1
m4xon
Helper I
Helper I

@v-xinruzhu-msft may you help? 🙂

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.