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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
HoreaL
Regular Visitor

Compare daily expected task (by area, location type, location) with actual

Hi,

 

I have a table with expected tasks executed daily by: area, location type and location.

Something like this:

DayAreaLocation typeLocationTask
MondayArea1House1Room1Clean
MondayArea1House1Room2Wash
MondayArea1House2Room1Fix
MondayArea2House3Room1Wash
MondayArea2House3Room2Fix
MondayArea3House4Room1Clean
MondayArea3House4Room2Wash
MondayArea3House5Room1Fix
TuesdayArea1House1Room2Clean
TuesdayArea1House2Room1Fix
TuesdayArea2House1Room1Wash
TuesdayArea3House1Room2Wash
TuesdayArea3House2Room1Fix

Here I have Day (Monday, Tuesday, ...) but not date.

 

And then I have in another table with daily tasks completed. 

DayDataAreaLocation typeLocationTask
Monday11/04/2022Area1House2Room1Clean
Monday11/04/2022Area2House3Room1Wash
Monday11/04/2022Area2House3Room2Fix
Monday11/04/2022Area3House4Room2Wash
Monday11/04/2022Area3House5Room1Fix
Tuesday12/01/1900Area1House2Room1Fix
Tuesday12/01/1900Area3House1Room2Wash
 

 

I want to make a (column or line) chart where I can see expected tasks versus actual tasks done by day (plus and another chart by week, and another chart my month).

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@HoreaL , On way is to create a concatenated column both table for these

Day Area Location type Location

 

And join and dimension, will have expected task and table will have actual task and you can display that in matrix 

 

or bring a new column in Table 2

maxx(filter(Table1, Table1[Day] = Table2[Day] && Table1[Area] = Table2[Area]&& Table1[Location type] = Table2[Location type] && Table1[Location] =Table2[Location]), Table1[Task])

 

now again both Task on matrix

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@HoreaL , On way is to create a concatenated column both table for these

Day Area Location type Location

 

And join and dimension, will have expected task and table will have actual task and you can display that in matrix 

 

or bring a new column in Table 2

maxx(filter(Table1, Table1[Day] = Table2[Day] && Table1[Area] = Table2[Area]&& Table1[Location type] = Table2[Location type] && Table1[Location] =Table2[Location]), Table1[Task])

 

now again both Task on matrix

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak,

Thank you for your help, but...

If I make a concatenated column on each table, I will have:

- on Table1 (expected tasks) data for only one week (from monday till sunday)

- on Table2 (actual tasks) data from monday till sunday but for 52 weeks (one year). 

It will be: Table1 = 7, Table2 = 7x52. 

The easy way would be to compare Table1 (expected tasks in 1 week) with Table2 (actual tasks in a week from 52 weeks of a year).

The long way would be to make in Table1 (expected tasks) tasks for all weeks (monday - sunday x 52 weeks) and then compare them (1:1) with tasks from Table2 (actual tasks)... but I would prefer something simpler, not so complicated.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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