Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
76 | |
71 | |
54 | |
40 | |
35 |
User | Count |
---|---|
68 | |
66 | |
60 | |
50 | |
47 |