Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Pivot graph in Power BI

Friends, I am new in Power BI and wanted to create a similar figure I created in Excel Pivot very easily. I could not find exact same conditions in web so I need your help. My table is similar below...
  • TeigeGao's avatar
    TeigeGao
    7 years ago

    Hi Anonymous ,

    In this scenario, we can create two measures, one for "Above 4 days", one for "Below 1 Hr". Please refer to the following two measures:

    Measure = var a = CALCULATE(SUM(Table1[WO Turn Around Time]))
    var b = CALCULATE(SUM(Table1[WO Turn Around Time]),Table1[Logic Text] = "Below 1 Hr")
    return DIVIDE(b,a,0)
    
    Measure2 = var a = CALCULATE(SUM(Table1[WO Turn Around Time]))
    var b = CALCULATE(SUM(Table1[WO Turn Around Time]),Table1[Logic Text] = "Above 4 days")
    return DIVIDE(b,a,0)

    The result will like below:

    Best Regards,

    Teige