Forum Discussion

paopau86's avatar
paopau86
New Member
7 years ago
Solved

Issues with bar & line chart

Hi - I created a stacked bar/line chart to show two sets of data, the first column (bars) show dates when someone contacted me, and the second column (line) shows when an actual meeting was scheduled...
  • v-juanli-msft's avatar
    v-juanli-msft
    7 years ago

    Hi paopau86

    1. Open Edit queries

    click on columns "contact" and "meeting", select "transform"->unpivot columns

    then i get the following table

    close &apply

    2.

    create a new table, enter the formula in the formula bar in"Home"->"new table"

    date = CALENDARAUTO()

    create a relationsip between this date table and my data table

    3. create two measures

    contacts = CALCULATE(DISTINCTCOUNT(Sheet5[company]),FILTER(Sheet5,Sheet5[Attribute]="contact"))
    
    meeting = CALCULATE(DISTINCTCOUNT(Sheet5[company]),FILTER(Sheet5,Sheet5[Attribute]="meeting"))

     

    Best Regards

    Maggie

     

    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.