Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
I have a Target Table in EUR as follows
| Month | Target |
| Apr | 20,965,000 |
| May | 18,876,560 |
| Jun | 17,987,908 |
| Jul | 16,897,789 |
| Aug | 25,987,654 |
| Sep | 23,765,456 |
| Oct | 18,907,654 |
| Nov | 24,908,765 |
| Dec | 23,876,543 |
| Jan | 25,678,654 |
| Feb | 19,876,546 |
| Mar | 27,890,989 |
My objective is to allocate the target by Day.
I have been able to get the allocatedDayTarget by dividing the TargetAmount per mth by the no days in each Month.
Hello,
Just to clarity that the wrong dax code was posted yesterday.
In fact to calculate the no of days in the month I have used the following:
Hi @VeemalS ,
My Date table is as below.
Date =
ADDCOLUMNS( CALENDAR(DATE(2022,01,01),DATE(2022,12,31)),"Year",YEAR([Date]),"Month",MONTH([Date]),"MonthName",FORMAT([Date],"MMM"))
Relationship:
Measure:
Target by Day =
VAR _COUNT =
COUNT ( 'Date'[Date] )
VAR _TARGET =
CALCULATE (
SUM ( 'Table'[Target] ),
FILTER ( 'Table', 'Table'[Month] = MAX ( 'Date'[MonthName] ) )
)
RETURN
DIVIDE ( _TARGET, _COUNT )
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Unfortunately this has not resolved the issue that I am having
Thanks. The allocated amount by day is ok. However, from this how do I calculate an MTD amount?
Brgds
Veemal
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 133 | |
| 88 | |
| 85 | |
| 68 | |
| 64 |