Forum Discussion

Varishtha's avatar
Varishtha
Icon for Helper I rankHelper I
2 years ago
Solved

Stagger Chat in Power BI

I am trying to make a stagger chart for actual sales generated and forecasted sales for next 4 months. Below is what it looks like in excel:   I tried to put "sales" measure in the matri...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Varishtha ,

    If you want to use 20 as your forecast sales value for the next month, please take a look at this test:

    My Model View:

    Calender = ADDCOLUMNS(CALENDAR(DATE(2024,1,1),DATE(2024,12,31)),"Start of Month",DATE(2024,MONTH([Date]),1),"_Month",MONTH([Date]))

    I created another new table:

    Table 2 = VALUES('Calender'[Start of Month])

    My Report View and Measure value:

    Measure = IF(

     MONTH( MAX( 'Calender'[Start of Month] ) )=MAX('Calender'[_Month] ) ,

    MAX('Calender'[_Month]), 0)

    Measure 3 = IF( MONTH( MAX('Calender'[Start of Month]))  = MONTH( MAX('Table 2'[Start of Month]) ) ,MONTH( MAX('Calender'[Start of Month])),  IF( MONTH( MAX('Calender'[Start of Month])) +1 = MONTH( MAX('Table 2'[Start of Month]) ) , 20 , BLANK()))

    Best Regards,

    Sunshine Gu