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.
MateriaalKostenNederlandTekstArt =
CALCULATE(
SUM('C1-REV-DouaneMateriaalKosten'[TotalCost]),
( 'C1-RV-TekstArtikel-Jobnum-WO-Vendor'[Country] = "Nederland" && 'C1-REV-DouaneMateriaalKosten'[PartClassDescription] = "TekstArtikel"))
gives the error : the expression contains columns from multiple tables, but only columns from a single table.
Does any one have an idea how i can perform this action ? Calculate TotalCost with Filtered values from two different tables ?
In de model the two tables are related on jobnum:
Thank you
Solved! Go to Solution.
MateriaalKostenNederlandTekstArt =
CALCULATE(
SUM('C1-REV-DouaneMateriaalKosten'[TotalCost]),
'C1-RV-TekstArtikel-Jobnum-WO-Vendor'[Country] = "Nederland",
'C1-REV-DouaneMateriaalKosten'[PartClassDescription] = "TekstArtikel")
I think you will want to spend some time with your data model. It is not in a usable shape at the moment.
Thank you
@lbendlin The measure you corrected measure does work.
I cannot change much on the datamodel since they come from existing views which i tied together.
MateriaalKostenNederlandTekstArt =
CALCULATE(
SUM('C1-REV-DouaneMateriaalKosten'[TotalCost]),
'C1-RV-TekstArtikel-Jobnum-WO-Vendor'[Country] = "Nederland",
'C1-REV-DouaneMateriaalKosten'[PartClassDescription] = "TekstArtikel")
I think you will want to spend some time with your data model. It is not in a usable shape at the moment.
@lbendlin
Can you clarify your statement below ? Thank you.
I think you will want to spend some time with your data model. It is not in a usable shape at the moment.
Power BI prefers star schema data models, with clearly identified dimension and fact tables in a 1:* single direction relationship (the dimension controlling the fact). Avoid limited relationships and bidirectional *:* where possible.
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 |
---|---|
65 | |
64 | |
56 | |
39 | |
27 |
User | Count |
---|---|
85 | |
59 | |
45 | |
43 | |
38 |