Forum Discussion

GeorgesKV's avatar
GeorgesKV
Helper I
7 years ago
Solved

Import a PivotTable to PowerBi?

Hi all, So we are changing to a unique dashboard instead of creating multiple excel files for each week in various reports, I'm having a problem with one of them. It's a Capacity Utilization ba...
  • v-jiascu-msft's avatar
    v-jiascu-msft
    7 years ago

    Hi GeorgesKV,

     

    Please be aware of your data safety. 

    If I understand your requirements correctly, it could be done by four measures as follows. Please also check out the demo in the attachment.

     

    sumOfYes =
    CALCULATE (
        COUNTROWS ( 'PM__Time_Detail_by_Month_by_Bra' ),
        PM__Time_Detail_by_Month_by_Bra[Billable] = "Yes"
    )
    
    sumOfNo =
    CALCULATE (
        COUNTROWS ( 'PM__Time_Detail_by_Month_by_Bra' ),
        PM__Time_Detail_by_Month_by_Bra[Billable] = "No"
    )
    
    %sumOfYes =
    DIVIDE (
        CALCULATE (
            COUNTROWS ( 'PM__Time_Detail_by_Month_by_Bra' ),
            PM__Time_Detail_by_Month_by_Bra[Billable] = "Yes"
        ),
        CALCULATE (
            COUNTROWS ( 'PM__Time_Detail_by_Month_by_Bra' ),
            ALL ( PM__Time_Detail_by_Month_by_Bra[Billable] )
        ),
        0
    )
    
    %sumOfNo =
    DIVIDE (
        CALCULATE (
            COUNTROWS ( 'PM__Time_Detail_by_Month_by_Bra' ),
            PM__Time_Detail_by_Month_by_Bra[Billable] = "No"
        ),
        CALCULATE (
            COUNTROWS ( 'PM__Time_Detail_by_Month_by_Bra' ),
            ALL ( PM__Time_Detail_by_Month_by_Bra[Billable] )
        ),
        0
    )
    

    sub_of

     

    Best Regards,
    Dale