Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi.. I am pretty new to Power BI
I have two tables, one For the transaction Document and another for the Tender details of the transaction.
In the tender tables, for every tender it will create a row with the tender type (eg: Cash, Master Card, Visa etc) and the tender amount.
Even if a single transaction has multiple tenders (Split tenders) like cash and one of the cards, it has multiple record of rows for each tender type.
The tender table contains Transaction SID which is the reference to the Transaction Document.
My requirement is to Create coloumns according to the multiple tender type(Cash, mastercard, visa) which will contain the tender amount as values and group it according to the transaction SID.
I tried adding a custom coloumn with
Cash = LOOKUPVALUE(TENDER[AMOUNT],TENDER[DOC_SID],DOCUMENT[SID],TENDER[TENDER_TYPE],0)
but it gives an error
A table of multiple values was supplied where a single value was expected.
Please help me out in this.
Thanks in advance.
Solved! Go to Solution.
Hi @Krish4Work
Please refer to attached sample file. Hope this is what you're looking for
Cash =
SUMX (
FILTER (
RELATEDTABLE ( TENDER ),
TENDER[TENDER_TYPE] = 0
),
TENDER[AMOUNT]
)
Hi @Krish4Work
Do you have a relationship between the two tables? Can you please provide sample data from both tables along with the expected result?
Hi @tamerj1
Thanks for replying!
Please find the .pbix file in this attached wetransfer link.
Both the tables have relatioship ie Tender[Doc_sid] = Document[sid].
Hi @Krish4Work
Please refer to attached sample file. Hope this is what you're looking for
Cash =
SUMX (
FILTER (
RELATEDTABLE ( TENDER ),
TENDER[TENDER_TYPE] = 0
),
TENDER[AMOUNT]
)
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
23 | |
10 | |
10 | |
9 | |
7 |