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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.