Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi Community,
I need help with a DAX code that looks up a table groups the ACCT_ID and only indicates where payments on the account are either AUSTPOST or BPAY. Insert below helps explain the output required.
Solved! Go to Solution.
Hi,
Thank you for your message.
Could you please share your sample pbix file's link?
Are you looking for the calculated measure or calculated column?
Thanks.
@jwint Thank you I am receiving and issue with the code below. Are you able to help? It must have something do to with the relationship between the two tables. The TND_SOURCE_CODE is stored in a seperate table to ACCT_ID.
Hi,
Thank you for your message.
Could you please share your sample pbix file's link?
Are you looking for the calculated measure or calculated column?
Thanks.
Hi,
Please check the below picture and the attached pbix file.
It is for creating a new column.
Result required CC =
VAR _conditionone =
{ "BPAY" }
IN SUMMARIZE (
FILTER ( Data, Data[Acc_ID] = EARLIER ( Data[Acc_ID] ) ),
Data[Payment Type]
)
VAR _conditiontwo =
{ "AustPost" }
IN SUMMARIZE (
FILTER ( Data, Data[Acc_ID] = EARLIER ( Data[Acc_ID] ) ),
Data[Payment Type]
)
VAR _conditionthree =
( _conditionone || _conditiontwo )
&& COUNTROWS (
FILTER (
Data,
Data[Acc_ID] = EARLIER ( Data[Acc_ID] )
&& Data[Payment Type] <> "BPAY"
&& Data[Payment Type] <> "AustPost"
)
) = 0
RETURN
DIVIDE ( _conditionthree, _conditionthree )
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |