Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hello everybody,
I'm not expert in DAX and I'm blocked... I'm doing a menu engineering and I put some categorie's name for each product sold like "Etoile", "Vache à lait", "Enigme" and "Poids Mort" for the below measure :
Now I want to calculate how many "Etoile" I have in my selection to pur this number in the map icon above.
How I can do this ??
Solved! Go to Solution.
You cannot measure a measure. You need to materialize it first, or create a separate measure that implements the entire logic.
Thanks for your response but how can I do this ? Tell me if zou need for details.
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
Not sure what your expected outcome is, but something like this
Etoile =
var a = ADDCOLUMNS(VALUES('Menu Engineering'[Article / Produit]),"q",sum('Menu Engineering'[Qté]),"e",calculate([Catégorie]))
return sumx(filter(a,[e]="Etoile"),[q])
We are on the good way hehe !!
This formula give me the total of the quantities : 12
But I want a formula who shows how many product I have with the category "Etoile", how many with the category "Enigme", etc...
In this example, I need to have 1 "Etoile", 1 "Enigme" and 1 "Poids Mort".
I hope I've made my explanations clear enough...
you can return COUNTROWS instead of SUMX.
Excellent, it worked !!
Thank you so much for your help !