Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I have created a measure to obtain the amount of purchases to providers, and this works more or less fine, but if try to add another filter thsi filter it´s not affecting, it shows the same value, no matter what you choose in the filter.
Here is the PBIX file.
This is the ralitionship between my tables
And the measure i created:
PURCHASE AMOUNT =
var selectedProvider=SELECTEDVALUE('PROVIDERS DUPLICATE'[NIF])
VAR famSelec=SELECTEDVALUE(ARTICLES[FAMPRO NAME])
var OneValue= calculate(SUM('PURCHASE LINES'[IMPORTELIMPIO]),all(ARTICLES),PROVIDERS[NIF]=selectedProvider)
var resul=IF(
HASONEVALUE('PROVIDERS DUPLICATE'[NIF]),
OneValue,
SUMX('PURCHASE LINES','PURCHASE LINES'[IMPORTELIMPIO])
)
return resul
if i delete the part where i omit the filters appliedd to the articles table--all(articles)--, the filter works, but the values they give me it´s not correct.
So how i can i solve this??
Solved! Go to Solution.
Replace All function with ALLEXCEPT
hope this will work
Did I answer your question? If so, please mark my post as a solution!
Proud to be a Super User!
Replace All function with ALLEXCEPT
hope this will work
Did I answer your question? If so, please mark my post as a solution!
Proud to be a Super User!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |