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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
ABC11
Helper III
Helper III

want to see within GOALIMIT ROW

Hello to All,

Only want to see one row per LEMNUM - within GOALIMIT when LEMNUM is same- color in BLUE

As example

LEMNUM 322185 - LINE_COST 279,000>250,000 and 279,000<=500,000 so PERSONID- MATTHEGE do not have enough GOALIMIT so approver would be GLENNS so I would like to show only blue row 

LEMNUM 322197- MATTHEGE has enough GOALIMIT to approve.

 

PERSONGROUPNAMECNRCMSLEMNUMWAPPR_DATEPERSONID GOALIMIT  LINE_COST NO_OF_DAYS
LEMHZHMHEAVY R0155893221851/8/2024GLENNS              500,000.00       279,000.000
LEMHZHMHEAVY R0155893221851/8/2024MATTHEGE              250,000.00       279,000.000
LEMHZHMHEAVY R0155893221971/8/2024GLENNS              500,000.00       373,200.000
LEMHZHMHEAVY R0155893221971/8/2024MATTHEGE              250,000.00       233,000.000
LMBP02GRAHAM R0331123204271/1/2024DANSO              250,000.00       119,612.457
LMBP02GRAHAM R0331123204271/1/2024ROBBERTR              500,000.00       119,612.457
LMBP08ABCR0180073220291/8/2024ANDREWC              100,000.00       259,950.400
LMBP08ABCR0180073220291/8/2024BLAKETA              250,000.00       259,950.400
LMBP08ABCR0180073220291/8/2024CHRISFAU              250,000.00       259,950.400
LMBP08ABCR0180073220291/8/2024DANSO              250,000.00       259,950.400
LMBP08ABCR0180073220291/8/2024DANTEC                50,000.00       259,950.400
LMBP08ABCR0180073220291/8/2024GREGMA              250,000.00       259,950.400
LMBP08ABCR0180073220291/8/2024JEFFWH          2,500,000.00       259,950.400
LMBP08ABCR0180073220291/8/2024JOHNAL          2,000,000.00       259,950.400
LMBP08ABCR0180073220291/8/2024ROBBERTR              500,000.00       259,950.400
LMBP09XYZR0327123157031/2/2024DANSO              250,000.00         16,756.406
LMBP09XYZR0327123157031/2/2024JASONTA          2,500,000.00         16,756.406
LMBP09XYZR0327123157031/2/2024ROBBERTR              500,000.00         16,756.406
LMBP09XYZR0327123157041/2/2024DANSO              250,000.00         17,686.506
LMBP09XYZR0327123157041/2/2024JASONTA          2,500,000.00         17,686.506
LMBP09XYZR0327123157041/2/2024ROBBERTR              500,000.00         17,686.506
LMBP09XYZR0327123158841/8/2024DANSO              250,000.00         11,257.840
LMBP09XYZR0327123158841/8/2024JASONTA          2,500,000.00         11,257.840
LMBP14DGFR0191513196961/8/2024CHADBE          2,500,000.00           3,218.870
LMBP14DGFR0191513196961/8/2024CHRISFAU              250,000.00           3,218.870
LMBP14DGFR0191513196961/8/2024DANTEC                50,000.00           3,218.870
LMBP14DGFR0191513196961/8/2024NATM              250,000.00           3,218.870

 

Thanks for your time and help

ABC11

 

3 ACCEPTED SOLUTIONS

@ABC11 
There are multiples ways. You can create a new table that filters only the final approvers.
under modling tab, create a new table as follows:

New Table = FILTER( Table03 , Table03[PERSONID] = Table03[APPROVER] )

Result:

Fowmy_0-1704835628564.png

 




Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

Thanks lots for your time

View solution in original post

@ABC11 

Here are the modified codes:

Calculated Column:

APPROVER = 
VAR __LemnumFiltered =  FILTER( Table03 , Table03[LEMNUM] = EARLIER(Table03[LEMNUM]) && Table03[ GOALIMIT ] > Table03[ LINE_COST ] )
VAR __ApproverAmount = MINX( __LemnumFiltered , Table03[ GOALIMIT ] )
VAR __Result = CONCATENATEX(  FILTER( __LemnumFiltered , Table03[ GOALIMIT ] = __ApproverAmount ) , Table03[PERSONID],"|" )
RETURN
    __Result


New Table:

New Table = FILTER( Table03 ,  CONTAINSSTRING( Table03[APPROVER], Table03[PERSONID] ) )



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

17 REPLIES 17
Fowmy
Super User
Super User

@ABC11 

Please explain
1. Why the LINE COST numbers are different for 322197 ?
2. For number 322029 ROBBERTR qualifies first to approve but you highlighted JEFFWH




Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Hello Fowmy,

LEMNUM#322197-it was my mistake(when I was dummy preparing data) it should be 233,000

LEMNUM#322029-you are correct ROBBERTR should be the approver.

Sorry for this mistake

Thanks for looking into-would you please help me here

 

@ABC11 

Add the following calculated column to your table:

APPROVER = 
VAR __LemnumFiltered =  FILTER( Table03 , Table03[LEMNUM] = EARLIER(Table03[LEMNUM]) && Table03[ GOALIMIT ] > Table03[ LINE_COST ] )
VAR __ApproverAmount = MINX( __LemnumFiltered , Table03[ GOALIMIT ] )
VAR __Result = MAXX(  FILTER( __LemnumFiltered , Table03[ GOALIMIT ] = __ApproverAmount ) , Table03[PERSONID] )
RETURN
    __Result

 

Fowmy_0-1704834222137.png

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Thanks Lots Fowmy,

How can I remove duplicate row. 

Is it possible to have one line for one LEMNUM

Please

@ABC11 
There are multiples ways. You can create a new table that filters only the final approvers.
under modling tab, create a new table as follows:

New Table = FILTER( Table03 , Table03[PERSONID] = Table03[APPROVER] )

Result:

Fowmy_0-1704835628564.png

 




Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Hello Towmy,

I need more help here,

In below example more than one aprpover has same GOALIMIT. How can I poplulate all name with same GOALIMIT  (within one row or individual row)

ABC11_0-1704840213148.png

Thanks again

 

@ABC11 

How do you want to see the results if more than one approver exists? All of them ? this will have  multiple rows per doc number. If you want to see a single line, I will have to combone the approver column values with concatnation like: AISAW|DANSO|SHANEC... and so on. I am not sure how you will make use this data.

Please confirm.




Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Hello Fowmy,

Single line will work for me.

Idea is to send email to aprpover.

Thanks lots

@ABC11 

To be clear, when you have a single line with approvers names concatenated together, I'am not sure how it will help you with sending mails. please check and confirm, better if you could share the expected output with your sample data.

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Hello Fowmy,

Thanks for your time

 

Sample Data

PERSONGROUPVENDOR_NAMECNRCMSNUMLEMNUMWAPPR_DATE CNRGOALIMIT  LINE_COST NO_OF_DAYSPERSONID
LMU216ABDR0242923217731/8/2024       250,000.00     23,543.523AISAW
LMU216ABDR0242933217731/8/2024       250,000.00     23,543.523BLAKETA
LMU216ABDR0242943217731/8/2024       250,000.00     23,543.523CHRISCOM
LMU216ABDR0242953217731/8/2024          25,000.00     23,543.523CRAIGHOO
LMU216ABDR0242963217731/8/2024       250,000.00     23,543.523DANSO
LMU216ABDR0242973217731/8/2024    2,500,000.00     23,543.523JASONTA
LMU216ABDR0242983217731/8/2024       250,000.00     23,543.523JONO
LMU216ABDR0242993217731/8/2024       250,000.00     23,543.523STEPHETE
LMU216ABDR0243003217731/8/2024       100,000.00     23,543.523WESLEYWE
LMBP08GEFR0180073224471/10/2024       100,000.00   150,150.001ANDREWC
LMBP08GEFR0180083224471/10/2024       250,000.00   150,150.001BLAKETA
LMBP08GEFR0180093224471/10/2024       250,000.00   150,150.001CHRISFAU
LMBP08GEFR0180103224471/10/2024       250,000.00   150,150.001DANSO
LMBP08GEFR0180113224471/10/2024          50,000.00   150,150.001DANTEC
LMBP08GEFR0180123224471/10/2024       250,000.00   150,150.001GREGMA
LMESLETR0246833229251/10/2024          10,000.00   200,000.001HEATHECO
LMESLETR0246843229251/10/2024       250,000.00   200,000.001JOHP
LMESLETR0246853229251/10/2024       250,000.00   200,000.001ROBERRIT

 

OUTPUT

PERSONGROUPVENDOR_NAMECNRCMSNUMLEMNUMWAPPR_DATE CNRGOALIMIT  LINE_COST NO_OF_DAYSPERSONID
LMU216ABDR0242953217731/8/2024          25,000.00     23,543.523CRAIGHOO
LMBP08GEFR0180083224471/10/2024       250,000.00   150,150.001BLAKETA;CHRISFAU;|DANSO;|GREGMA
LMESLETR0246843229251/10/2024       250,000.00   200,000.001JOHP;ROBERRIT

 

Thanks lot

 

Hello Fowny,

Can I request to you to help me here.

Please

Thanks

Hello Fowny,

I would like to request see my request.

Please

@ABC11 

Here are the modified codes:

Calculated Column:

APPROVER = 
VAR __LemnumFiltered =  FILTER( Table03 , Table03[LEMNUM] = EARLIER(Table03[LEMNUM]) && Table03[ GOALIMIT ] > Table03[ LINE_COST ] )
VAR __ApproverAmount = MINX( __LemnumFiltered , Table03[ GOALIMIT ] )
VAR __Result = CONCATENATEX(  FILTER( __LemnumFiltered , Table03[ GOALIMIT ] = __ApproverAmount ) , Table03[PERSONID],"|" )
RETURN
    __Result


New Table:

New Table = FILTER( Table03 ,  CONTAINSSTRING( Table03[APPROVER], Table03[PERSONID] ) )



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Thanks lots

Thanks lots for your time

Greg_Deckler
Super User
Super User

@ABC11 Not entirely sure I understand why one row is preferred over another but in general you need a Complex Selector. The Complex Selector - Microsoft Fabric Community


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hello GREG,

Thanks for your quick respond.

LEMNUM 322185- MATTHEGE can't approve this becuase his GOALIMIT upto 250,000 and my LINE_COST value is 279,000. so in this case GLENNS is approver.

LEMMUN 322197- MATTHEGE has enough GOALIMIT to approve. so do not want to forward this to GLENNS(GLENNS has higer GOALIMIT compare to MATTHEGE)

I hope - this will help us

Thanks again

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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