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.
Hello
I have a measure which is the following
Solved! Go to Solution.
Hi, @Ivolution93
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Table:
You may create a measure as below:
Result =
var tab =
SUMMARIZE(
ALL('Table'),
'Table'[Date],
"Result",
DIVIDE(
SUM('Table'[BudgetDailySalesTarget]),
SUM('Table'[WorkingDays])
)
)
return
SUMX(
FILTER(
tab,
[Date]<=MAX('Table'[Date])
),
[Result]
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Ivolution93
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Table:
You may create a measure as below:
Result =
var tab =
SUMMARIZE(
ALL('Table'),
'Table'[Date],
"Result",
DIVIDE(
SUM('Table'[BudgetDailySalesTarget]),
SUM('Table'[WorkingDays])
)
)
return
SUMX(
FILTER(
tab,
[Date]<=MAX('Table'[Date])
),
[Result]
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Ivolution93 , usuayllt you can get Cumulative like
Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected(Sales),Sales[Sales Date] <=max(Sales[Sales Date])))
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Hi @amitchandak
I did actually find a calculation identical to this on a few other threads and videos online, however i wasnt able to add the daily target in instead of the sales amount, i amsuming this is because it is a measure itself.
My data is connected to a SQL database, how would i share any data with you, sorry if this is a silly question i am relativly new to alot of things in power bi
@Ivolution93 , you can paste some same data here on the thread or upload sample data on onedrive or dropbox and share the link.
share expected output too
Hi
the link for 2 months of data is https://drive.google.com/file/d/1ESLqhqK5AkGV0iQLScV3pDdlezT3lDLF/view?usp=sharing
I have included date, monthly target, working days in the month and then daily target.
i am after a cumulative daily target between the any 2 selected dates from the tax date field.
the target is by day so on power bi when you put this on a visual the correct target is average on that day rather than sum.
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 |
---|---|
113 | |
97 | |
80 | |
69 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |