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
MPfeifer
New Member

Comparing 1 column in a table and selecting data from a 2nd column as my answer

[Admit Less Start]           [UniqueID]
39                          001692581March62018
65                          001692581February82018
73                          001692581January312018
85                          001692581January192018
1                            001692581January312018
13                          001692581January192018
                          001692581January192018

 

I am brand new to Power BI and have a question:

 

  • In the following example I have 3 [UniqueID] that are all similar (001692581January192018).  Based on this finding I need to select [Admit Less Start] with the lowest number (my choices are 85, 13 and 4) with 4 being the one I am looking for.  
  • Next there are 2 [UniqueID] that are the same (001692581January312018). I need select the lowest number between those two which is 1.

What is the best way to get this answer?

1 ACCEPTED SOLUTION
PattemManohar
Community Champion
Community Champion

@MPfeifer Please try to group the data by UniqueID and select the Minimum "Admit Less Start" either in DAX or Power Query.

 

In DAX, create a "New Table" as below

 

Test60Out = SUMMARIZECOLUMNS(Test60Group[UniqueID],"AdmitLessStart",MIN(Test60Group[AdmitLessStart])) 

image.png





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




View solution in original post

2 REPLIES 2
Anonymous
Not applicable

PattemManohar
Community Champion
Community Champion

@MPfeifer Please try to group the data by UniqueID and select the Minimum "Admit Less Start" either in DAX or Power Query.

 

In DAX, create a "New Table" as below

 

Test60Out = SUMMARIZECOLUMNS(Test60Group[UniqueID],"AdmitLessStart",MIN(Test60Group[AdmitLessStart])) 

image.png





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




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.