Forum Discussion
GeorgesKV
7 years agoHelper I
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...
- 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 )Best Regards,
Dale
v-jiascu-msft
7 years agoMicrosoft Employee
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
)
Best Regards,
Dale
GeorgesKV
7 years agoHelper I
Thank you. I've removed all the private info, leaving only public and changed info so it's safe. Anyhow the link expired. I will look into this, thank you again.