The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Dear Community,
This time I have situation when I need to extract in a visual the earliest status for each hostname in an action and per each SW that needs to be installed on respective hostnames.
I've tried CALCULATE(
MAX(MyTable[action_id];
FILTER( ALLEXCEPT(MyTable; MyTable[action_name]);
MyTable[action_start = MAX( MyTable[action_start])))
but I've got an error with MAX function due to the fact that referring to a column with multiple entries (duplicate per server and SW - each action has few SW applied to multiple hostnames). And here I got lost - I've been trying to figure this out adding a COUNT or SUM function before MAX, but seems I was again doomed to fail.
Enclosed below a sample of my data set and desired outcome.
Sample
Outcome
Many thanks in advance for your feedback and support!
K
Solved! Go to Solution.
Create this measure and put it visual level filter
Measure 3 =
var __id = min(Sheet1[hostname])
var __date = CALCULATE(max(Sheet1[action_start]),ALLSELECTED(Sheet1),Sheet1[hostname]=__id)
return
CALCULATE(COUNT(Sheet1[action_id]),VALUES(Sheet1[hostname]),Sheet1[hostname]=__id , Sheet1[action_start]=__date)
Link : https://www.dropbox.com/s/bqd9vxp97cgm2u6/firstAction.pbix?dl=0
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Connect on Linkedin
Adding a OneDrive link to enclosed data set: https://1drv.ms/u/s!AvcPl6Zol8otgs4oJbydjMIcKjtHTg?e=rbjbXv.
Create this measure and put it visual level filter
Measure 3 =
var __id = min(Sheet1[hostname])
var __date = CALCULATE(max(Sheet1[action_start]),ALLSELECTED(Sheet1),Sheet1[hostname]=__id)
return
CALCULATE(COUNT(Sheet1[action_id]),VALUES(Sheet1[hostname]),Sheet1[hostname]=__id , Sheet1[action_start]=__date)
Link : https://www.dropbox.com/s/bqd9vxp97cgm2u6/firstAction.pbix?dl=0
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Connect on Linkedin
Hello Amit,
Like always, simply brilliant! Many thanks Amit, words can't describe how much I appreciate your help (once again)!
Cheers,
K
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
118 | |
87 | |
75 | |
53 | |
45 |
User | Count |
---|---|
135 | |
121 | |
77 | |
65 | |
64 |