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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
bhelou
Responsive Resident
Responsive Resident

Lookupvalue Measure

Hello, i have this in a calculated column and working perfect , i need to convert it to a measure 

the search in my report is the transaction number : TRX_Num , i need to see the pay status for each single line in a measure not in columns for performance .


Formula :


Pay_Status =
IF (
ISBLANK (
LOOKUPVALUE (
AWPT_AR_CASH_RECEIPTS_LINES[TRX_NUMBER],
AWPT_AR_CASH_RECEIPTS_LINES[TRX_NUMBER], AWPT_AR_TRANSACTIONS_LINES[TRX_NUMBER]
)
),
"Not Paid",
"Paid"
)
 
 
Thank you very much 
2 ACCEPTED SOLUTIONS
PhilipTreacy
Super User
Super User

Hi @bhelou 

Please provide your PBIX file or data.

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

v-deddai1-msft
Community Support
Community Support

Hi @bhelou ,

 

You can use the following measure:

 

Pay_Status =
IF (
    ISBLANK (
        LOOKUPVALUE (
            AWPT_AR_CASH_RECEIPTS_LINES[TRX_NUMBER],
            AWPT_AR_CASH_RECEIPTS_LINES[TRX_NUMBER], MAX ( AWPT_AR_TRANSACTIONS_LINES[TRX_NUMBER] )
        )
    ),
    "Not Paid",
    "Paid"
)

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

View solution in original post

5 REPLIES 5
v-deddai1-msft
Community Support
Community Support

Hi @bhelou ,

 

You can use the following measure:

 

Pay_Status =
IF (
    ISBLANK (
        LOOKUPVALUE (
            AWPT_AR_CASH_RECEIPTS_LINES[TRX_NUMBER],
            AWPT_AR_CASH_RECEIPTS_LINES[TRX_NUMBER], MAX ( AWPT_AR_TRANSACTIONS_LINES[TRX_NUMBER] )
        )
    ),
    "Not Paid",
    "Paid"
)

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

Thanksss , working great

PhilipTreacy
Super User
Super User

Hi @bhelou 

Please provide your PBIX file or data.

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


negi007
Community Champion
Community Champion

@bhelou can you please share your data in text format and the structure of the data. we will then advise you accordinlgy




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



Proud to be a Super User!


Follow me on linkedin

bhelou
Responsive Resident
Responsive Resident

Thank you very much , i solved it ,

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.