Forum Discussion

Nurzh's avatar
Nurzh
Frequent Visitor
3 years ago

Line and Clustered Column Chart, custom lines shared

Hi all, 

I am trying to create Line and Clustered Column Chart, with custom lines

Shortcut of dataset is below:  

Is_reviewedDoc_numberForecast DatesPeriod Type
True61-BDIN-52001June 2023Actual
False61-BFIN-21012June 2023Forecast
True61-HS-51762-3June 2023Actual
True61-NAS-52083June 2023Actual
False61-NFI-52007June 2023Forecast
False61-NGC-52010-1June 2023Forecast
False61-NGC-52071June 2023Forecast
False61-NGT-52060June 2023Forecast

 

The goal is to create custom line that shows: 

1. Actual rundown: Sum of all Doc_numbers and minus only count of Doc_numbers with Is_reviewed = True  (dataset will be updated to true if someone will review this doc number) and Period Type=Actual

2. Forecast rundown: Sum of all Doc_numbers and minus count of Doc_numbers with  Is_reviewed = False and Period Type=Forecast

The correct version of chart was in Excel below, and I am trying create in Power BI: 

 

 

Please help to create measures for this 2 additional lines. 

 

Many thanks! 

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Nurzh,

    I'd like to suggest you add a new table with these full categories to use on legend field. Then you can write Dax formulas to look up and aggregate raw table records based on current date axis and legend category. 

    If these also not help, you can also consider using script-based visuals(R, Python) to manually plot the graphs that you wanted.

    Regards,

    Xiaoxin Sheng