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 am trying to call a value relating to the Maximum version number for a category in a separate table.
I've managed to create a table which shows me the Max version number for the category, now I need to force my visual to show me the result that relates to that max version. Any ideas how I can do that?
More info:
There are 3 separate tables, for simplicity they are:
1. Version ID - multiple for each category
2. Highest Version ID (by Category)
3. Value - i.e. the value I want to call based on the highest version ID, matched to the Version ID.
Any help appreciated as always!
Faye
Solved! Go to Solution.
Hi, @FayeB1901 ;
Could you share the scene or simply pbix about your data after removing sensitive information? base on my understand , you could create a new table as follows:
1.original data.
2.create a new table.
newtable =
SELECTCOLUMNS (
FILTER (
'STANDARDJOBTABLE',
[VERSIONID]
= CALCULATE (
MAX ( 'STANDARDJOBTABLE'[VERSIONID] ),
ALLEXCEPT ( 'STANDARDJOBTABLE', 'STANDARDJOBTABLE'[STANDARDJOBID] )
)
),
"group", [STANDARDJOBID],
"highest version", [VERSIONID],
"value", [ Value]
)
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @FayeB1901 ;
Is the above answer helpful to you? If so, Would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @FayeB1901 ;
Could you share the scene or simply pbix about your data after removing sensitive information? base on my understand , you could create a new table as follows:
1.original data.
2.create a new table.
newtable =
SELECTCOLUMNS (
FILTER (
'STANDARDJOBTABLE',
[VERSIONID]
= CALCULATE (
MAX ( 'STANDARDJOBTABLE'[VERSIONID] ),
ALLEXCEPT ( 'STANDARDJOBTABLE', 'STANDARDJOBTABLE'[STANDARDJOBID] )
)
),
"group", [STANDARDJOBID],
"highest version", [VERSIONID],
"value", [ Value]
)
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@FayeB1901 , Create a combined key category and version id and join two table and get max category
Or you can try like
calculate(lastnonblankvalues(Table[Version ID], Max(Table[Value])), allexcept(Table[Category]))
Thanks for the suggestion but neither seem to work.
I can't create a key from my Max Version field as it's from a calculated table:
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 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |