Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
mamabox22
Frequent Visitor

Show Column in List where Max(Date) And a Column has value X

Hello guys,

i am currently working on a Report in PowerBi.

i got a Table which looks like this 

 

mamabox22_0-1646129017047.png

And  i need the following:
I need for latest completed column and where the type starts with "kpatch"  the kuid and where Phase is "reboot pending" the KUID.
So i want a list of KUIDs where these filters apply and i have no clue how i should do that.

May someone give an advice how i can achieve this ?

3 REPLIES 3
Tanushree_Kapse
Impactful Individual
Impactful Individual

Hi @mamabox22 ,

 

First create a column for getting the "kpatch" characters:

IF(
ISERROR( SEARCH("kpatch", Table[TYPE])
),
" ",
"kpatch"
)

 

Pull the kuid in a table visual and apply the filters from the filter pane on the visual.

 

 

Mark this as a solution, if it anwers your question. Kudos are always appreciated.

Thanks

amitchandak
Super User
Super User

@mamabox22 , based on what I got,

 

A new column like

maxx(filter(Table, [kuid] =earlier([kuid]) && [Phase] = "reboot pending" && search("kpatch",[type],,0) >0 ), [completed])

Hey,

this got me a lot closer but still isnt what i am looking for.

Sorry that i am not as specific as i should be.

I try to be as transparent as possible :).
I got multiple databases and i want a full report of my clients.

mamabox22_0-1646149642391.png

This is my Table at the moment.
And i want so see if a Client needs a reboot or not.

I can see that when i filter the KUID in the Table provided above.

What you gave me is the max time if the filters are applied.

So how can i get that to work.

i tried something like that:

if(
maxx(filter('KBSYS KONDUCTOR_TASK', [kuid] =earlier([KUID])),'KBSYS KONDUCTOR_TASK'[COMPLETED]) =
maxx(filter('KBSYS KONDUCTOR_TASK', [kuid] =earlier([KUID]) && [Phase] = "reboot pending" && search("kpatch",[type],,0) >0 ), [completed]),"reboot pending"
)

but when i add the column to the table i get every client duplicate with a reboot pending message, which is false
mamabox22_1-1646149887685.png


Hopefully you can understand me. I am very sorry for my bad english. Tried an translate now.



Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors