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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ls784
Frequent Visitor

Target Totals

Hi, I'm new to this and thought this would be a simple one but I haven't been able to figure it out.

 

I have my data for tasks completed by workers, and a separate Target spreadsheet which shows the monthly target for each worker. I'm trying to create a table to compare monthly data to the target and as a percentage, however the targets aren't totalling if I choose to look at multiple months.

 

ls784_0-1689591463400.png

What I need is a table/matrix that shows the totals per month, but also shows me the totals dependant on the time period I've chosen to look at. Is there a way of doing this or do I need to store the target data differently? I was also wondering if it was possible to have it automatically default to only show you the previous 3 months of data based on todays date?

ls784_2-1689591563775.png

Targets for "Time associated" table:

Name Target per month
Worker 1 0
Worker 2 1000
Worker 3 500
Worker 4 0
Worker 5 0
Worker 6 0
Worker 7 0
Worker 8 1200
Worker 9 1000

 

Example of Data: 

Completed ByDate Time Associated
Worker 229/06/2023 0
Worker 629/06/2023 0
Worker 629/06/2023 15
Worker 929/06/2023 60
Worker 927/06/2023 10
Worker 227/06/2023 60
Worker 426/06/2023 0
Worker 825/06/2023 10
Worker 825/06/2023 20
Worker 825/06/2023 10
Worker 825/06/2023 20
Worker 825/06/2023 15
Worker 825/06/2023 15
Worker 825/06/2023 10
Worker 825/06/2023 25
Worker 825/06/2023 15
Worker 825/06/2023 20
Worker 825/06/2023 20
Worker 223/06/2023 30
Worker 223/06/2023 45
Worker 223/06/2023 180
Worker 123/06/2023 0
Worker 122/06/2023 0
Worker 121/06/2023 0
Worker 921/06/2023 0
Worker 920/06/2023 0
Worker 920/06/2023 0
Worker 119/06/2023 0

 

Any help would be really appreciated.

1 ACCEPTED SOLUTION
mlsx4
Super User
Super User

Hi @ls784 

For showing the value according to the month, I always use a kind of multiplicator, which later on multiply to the final result:

var multiplicator= DISTINCTCOUNT('TABLA DE FECHAS'[Mes])
return result*multiplicator



View solution in original post

3 REPLIES 3
mlsx4
Super User
Super User

Hi @ls784 

For showing the value according to the month, I always use a kind of multiplicator, which later on multiply to the final result:

var multiplicator= DISTINCTCOUNT('TABLA DE FECHAS'[Mes])
return result*multiplicator



ls784
Frequent Visitor

Amazing, I knew it would be something simple. This did the trick!

 

Do you know if the second part of my question is possible? "I was also wondering if it was possible to have it automatically default to only show you the previous 3 months of data based on todays date?"

Hi @ls784 

 

I'm not sure...I suppose you will have to play with some "tricks" using bookmarks and so on.

I have seen that there are several threads talking about it. 

Take a look at them and see if it solves the problem:

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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