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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
gauravnarchal
Post Prodigy
Post Prodigy

Need help with DAX

Dear All -  I need your help in achieving the below requirement:-

 

Sample Data PBIX

 

Requirement

If the Invoice number starts with “9”

ð NI Receipts (Authentication Response) is “SUCCESS” & NI Receipts (Order Status) is “CLOSE”

Then Match

ð Receipts (Auth Code) = NI Receipts (Capture Code) & Receipts (Cash Amount) = NI Receipts (Refund Amount)

Return “PASS” else “FAIL”

 

If the Invoice number starts other than “9”

ð NI Receipts (Authentication Response) is “SUCCESS” & NI Receipts (Order Status) is “CLOSE”

Then Match

ð Receipts (Auth Code) = NI Receipts (Capture Code) & Receipts (Cash Amount) = NI Receipts (Capture Amount)

Return “PASS” else “FAIL”

 

 

1 REPLY 1
lbendlin
Super User
Super User

Your data model is not suitable.  M:M relationships with bidirectional search will create ambiguities.

lbendlin_0-1633035063340.png

Correct your data model.

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.

Top Solution Authors