Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ashaikh
Helper III
Helper III

Stack Bar Based on Multiple Table Measure

Hello,

 

I have 3 tables;  viewProdRemedyIncidentServicesSla(TableA), viewProdRemedyWorkorders(TableB) amd Date Table.

 

TableA has measure to calculate resolved tickets. Calculation is as below - 

 

INCIDENT COUNT RESOLVED =
CALCULATE (
DISTINCTCOUNT ( viewProdRemedyIncidentServicesSla[INCIDENT NUMBER] ),
FILTER (
ALL ( viewProdRemedyIncidentServicesSla ),
( viewProdRemedyIncidentServicesSla[STATUS] = "Closed"
|| viewProdRemedyIncidentServicesSla[STATUS] = "Resolved" )
&& viewProdRemedyIncidentServicesSla[WeekNumberResolved]
= MAX ( viewProdRemedyIncidentServicesSla[WeekNumberSubmit] )
&& viewProdRemedyIncidentServicesSla[INCIDENT LAST RESOLVED DATE].[Year] = 2018
)
)

Even Table B has a measure to calculate Resolved Ticket

 

WORKORDER COUNT RESOLVED =
CALCULATE (
COUNT ( viewProdRemedyWorkorders[WORK ORDER ID] ),
FILTER (
ALL ( viewProdRemedyWorkorders ),
( viewProdRemedyWorkorders[STATUS] = "Closed"
|| viewProdRemedyWorkorders[STATUS] = "Completed" )
&& viewProdRemedyWorkorders[WeekNumberResolved]
= MAX ( viewProdRemedyIncidentServicesSla[WeekNumberSubmit] )
&& viewProdRemedyWorkorders[ACTUAL END DATE].[Year] = 2018
)
)

 

Where as Date table has columns like Date, DateKey, WeeklyDuration. TableA and TableB have relationship with Date table using DateKey column.

 

So using this how will I be able to create a stack bar visual. For eg. Stack Bar should look like below.

stackbar.png

 

Any help is appreciated

 

Thanks in Advance 

 

 

 

3 REPLIES 3
v-yuta-msft
Community Support
Community Support

Hi ashaikh,

 

Does the table structure in 'viewProdRemedyIncidentServicesSla' and 'viewProdRemedyWorkorders' same with each other? If they are, you could add the datekey column to both tables, add a column to TableA which has value 'TableA' as legend column, add a column to TableB which has value 'TableB' as legend column. Then append the two tables, after applied&closed, you can drag column Date[Datekey] as X-axis column, drag legend column as legend. 

 

Regards,

Jimmy Tao

@v-yuta-msft the table dont have same structure. But as I have mentioned all three tables are related to each other using DateKey column.

Hi ashaikh,

 

Could you share some sample data if possible?

 

Regards,

Jimmy Tao

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors