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 would like to plot work progress of varying items within a project over time, at specific report dates, as shown in the figure below but with x-axis labels in the date format coming from a separately imported data table.
I have currently two related tables (n:n, Project - Project) that contain the data for multiple of the shown figures, i.e. multiple projects, with following columns:
Project | Report Date |
Project | Item | Progress | Report Number |
Every Project has a varying number of m-Items (lines in the figure) and n-Report Numbers (x-axis in the graph). Report numbers are enumerated from 1...n and the items are m-text values.
For every project I also have corresponding amount of n Report Dates. To I need to assign the dates to the report numbers in a way that the first date gets matched to report number 1, second to number two and last the n-th date to the n-th report,all the while considering that there are multiple projects in both tables.
Does anybody have a suggestion how I can achieve this?
Solved! Go to Solution.
Hi @rogerk ,
I create the following sample data.
Then add custom column in Table 2:
CustomColumn =
let
myfunction = (CurrentProject) =>
let
SelectRows = Table.SelectRows(Table, each [Project] = CurrentProject)
in
SelectRows,
Date = myfunction([Project]){[Report Number]-1}[Report Date]
in
Date
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @rogerk ,
I create the following sample data.
Then add custom column in Table 2:
CustomColumn =
let
myfunction = (CurrentProject) =>
let
SelectRows = Table.SelectRows(Table, each [Project] = CurrentProject)
in
SelectRows,
Date = myfunction([Project]){[Report Number]-1}[Report Date]
in
Date
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you, this works perfectly.
@rogerk , You should have a common project table and avoid n -n join
https://www.seerinteractive.com/blog/join-many-many-power-bi/
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
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 | |
94 | |
80 | |
67 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |