Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi
I am having below data model
Target table and sales table connected through Sales ID. Same with sales Target and salesperson
Target Table as below
Salesperson Table as below
SalesTable as below
I am trying to create a table visual as below
Sales Target for each salesperson is per day and it is static. So the target table has Sales ID and Target for each person. It means each salesperson has the same target for each day
What do I want?
I wanted to calculate % the Target for each day
% Target formula = Total Sales/ Sales Target
Example for date: 2/11/2020, total sales is 21 and sales target is 16. % Target = 21/16 which is equal to 1.31. However, I am getting different values.
I used this measure to calculate the %Target
%Target = SUM('Sales Table'[Total Sales])/SUM(Target[Sales Target])
It's not calculating each date. Can anyone advise how to do this?
Here is the sample pbix file https://we.tl/t-Xxww86tdCg
Solved! Go to Solution.
Hi @bourne2000
Try SUM / MAX for the %Target
%Target = SUM('Sales Table'[Total Sales]) / MAX(Target[Sales Target])
Regards
Phil
Proud to be a Super User!
Hi @bourne2000
Try SUM / MAX for the %Target
%Target = SUM('Sales Table'[Total Sales]) / MAX(Target[Sales Target])
Regards
Phil
Proud to be a Super User!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
97 | |
97 | |
82 | |
74 | |
66 |
User | Count |
---|---|
120 | |
105 | |
99 | |
81 | |
72 |