The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance 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.
User | Count |
---|---|
79 | |
78 | |
37 | |
33 | |
31 |
User | Count |
---|---|
93 | |
81 | |
59 | |
49 | |
49 |