The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi Everyone,
I have a case where I am required to show SLA Met based on a filter of week, region and location my data is represented like below:
And I need a return data in a seperate table or same table as per below based on per week per region and per locations SLA met - Yes count and total based on the same
The ultimate outcome is getting to SLA % which I am aware how to get but transformin the data to the table 2 in power bi is were i am strugling.
Currently I am using the below formula to get the Sla met by region
Solved! Go to Solution.
You can create a new table
Table 2 =
SUMMARIZE (
'Table',
[Week],
'Table'[Location],
[Region],
"Yes",
CALCULATE (
COUNTROWS ( 'Table' ),
ALLEXCEPT ( 'Table', 'Table'[Week], 'Table'[Region], 'Table'[Location] ),
'Table'[SLA Met] = "Yes"
),
"Total",
CALCULATE (
COUNTROWS ( 'Table' ),
ALLEXCEPT ( 'Table', 'Table'[Week], 'Table'[Region], 'Table'[Location] )
)
)
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You can create a new table
Table 2 =
SUMMARIZE (
'Table',
[Week],
'Table'[Location],
[Region],
"Yes",
CALCULATE (
COUNTROWS ( 'Table' ),
ALLEXCEPT ( 'Table', 'Table'[Week], 'Table'[Region], 'Table'[Location] ),
'Table'[SLA Met] = "Yes"
),
"Total",
CALCULATE (
COUNTROWS ( 'Table' ),
ALLEXCEPT ( 'Table', 'Table'[Week], 'Table'[Region], 'Table'[Location] )
)
)
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
26 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
31 | |
11 | |
10 | |
10 | |
9 |