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 all,
I'm having trouble creating an efficient way of distributing multiple columns values between two dates. I have the table as above. I need to be able to tell per ID how much of a given resource columns ResearchAndDevelopment, PtProduction, PortfolioMarketing, Procurement, Quality and Other has been used per month between the two dates Level 3 and Level 4. The columns aren't populated right now, I know, but will be shortly with a number.
The values are split equally on the number of months between the 2 dates.
The end visual needed is akin to a matrix that looks like this. To be able to tell in what months an ID has use for what resources.
I imagine it has to extend IDs down the number of months between the two dates and have a new column with a corresponding month.
I am open to any suggestions. Please ask if I did not explain in enough detail.
@donaldo
Good morning,
have you ever found a solution to this problem? I am currently struggling with the same problem. I only have one row for each item ID. When I try to distribute the item value across the data, the distribution only occurs within the measure. Of course, if I select a random month where the item ID is not present (for example, a date within the start and end dates), the item disappears because the realtion model does not recognize the selected month for the specific item.
Hi,
Yes, it has been quite a while - so I am not into the context anymore. I managed to solve it and I'm just going to have to paste the solution to you - basciallyI had to create a date calendar (I probably could have used my existing datekey calendar, but I didn't know better at the time) like so:
Resource Calendar = FILTER(CALENDAR("2016-01-01","2024-12-31"),DAY([Date])=1)
And then crossjoin with my original table above:
Resource Distribution = FILTER(CROSSJOIN('Resources','Resource Calendar'),'Resource Calendar'[Date]>='Resources'[ImplementationLevel(IL3).ExpectedProgress]&&'Resource Calendar'[Date]<='Resources'[ImplementationLevel(IL4).ExpectedProgress])
Giving me a row by row distribution of the resources, my description might not be exactly accurate but it's just from glancing over a project from 4 years ago, so you might have to just go by the DAX.
Hi @donaldo,
Current power bi not support direct analysis data between multiple date columns, maybe you can consider to expand these date range to new table and create relationship to original table for analytics:
Spread revenue across period based on start and end date, slice and dase this using different dates
Regards,
Xiaoxin Sheng
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 |
---|---|
110 | |
99 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
110 | |
91 | |
84 | |
66 |