The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
85 | |
83 | |
34 | |
34 | |
32 |
User | Count |
---|---|
94 | |
79 | |
62 | |
54 | |
51 |