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.
I have a table which shows Daily Bookings and MTD Bookings broken down by fiscal month. It's a matrix table since I need the months to appear across the top.
The first column is called CADIM which is Day in Month and goes from 1 to 25 (there can be up to 25 days in our fiscal month).
What I'm trying to do is create a measure which takes the MTD Bookings number and divide it by whatever the Day in Month is for that row.
For example (based off the below table), if the MTD Bookings for Day 10 is $8,123,912, then the run rate would be 8,123,912 / 10 = $812,391.20. If MTD Bookings for Day 19 is $15,871,745 the run rate would be 15,871,745 / 19 = $835,355.
I know how to look up the CADIM field from my DATE table, but it only returns what the current Day in Month (or Today's number) is.
Any help would be greatly appreciated!!
Solved! Go to Solution.
I will try this solution and get back to you. (Sorry...was on vacation last week.)
Here is the solution that worked for me:
Hi @Roseventura
Is this problem sloved?
If it is sloved, could you kindly accept it as a solution to close this case?
If not, please let me know.
Best Regards
Maggie
Hi @Roseventura
If your Fiscal Day in Month is not from 1~25,
but from 3~28 for example,
you want MTD to divide by 1~25, not the actual day number from 3~28,
If so, you could refer to my previous post which is modified just now.
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I will try this solution and get back to you. (Sorry...was on vacation last week.)
Here is the solution that worked for me:
Hi @Roseventura
1.
Create a calendar table
calendar = ADDCOLUMNS(CALENDARAUTO(),"year",YEAR([Date]),"month",MONTH([Date]),"day",DAY([Date]))
Create relationship between the calendar table and data table.
2.
Create columns in data table
Actual Day Number = DAY('Table'[Date]) Month = MONTH('Table'[Date]) Year = YEAR('Table'[Date]) Rank Day Number by Month and Year =
RANKX (
FILTER (
'Table',
'Table'[Month] = EARLIER ( 'Table'[Month] )
&& 'Table'[Year] = EARLIER ( 'Table'[Year] )
),
'Table'[Actual Day Number],
,
ASC,
DENSE
)
Create measures
MTD = TOTALMTD(SUM('Table'[Daily Bookings]),'Table'[Date]) Run Rate = [MTD]/MAX('Table'[Rank Day Number by Month])
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
93 | |
84 | |
66 |