Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi everyone,
I have a little filter problem. I think i dont really understand how the calculate function works.
The filter on the top left is used to filter the article (4015001050 for example) or the mold, which has been used to create the article.
When I select an entire Mold, or a mold with only article, I have the correct number (450,54k in our example) as the simulation paramter is 1, and therefore sales = simulated sales.
The problem is that when I select a mold with more than one article, the simulated sales measure still measure for the entire mold and not only the article selected. I thought it would work has I used the articles as filter in my calculate function. I guess I'm misunderstand something.
Here is an example of the problem :
So as you can see, simulated sales stays 450k while it should be 1,49k.
Does anyone has a solution ?
Thanks a lot,
Yannick
Solved! Go to Solution.
Hi @YannDV ,
Your problem is this part of the Simulated Sales measure:
ALL('Final Product Master Data'[Article])
This is telling DAX to remove all filters on the data when calculating, including the filters applied by your slicers.
Try this instead:
Simulated Sales = [Sales] * 'Parameter Simulation Sales'[Parameter Simulation Sales Value]
Pete
Proud to be a Datanaut!
Thanks a lot!
Hi @YannDV ,
Your problem is this part of the Simulated Sales measure:
ALL('Final Product Master Data'[Article])
This is telling DAX to remove all filters on the data when calculating, including the filters applied by your slicers.
Try this instead:
Simulated Sales = [Sales] * 'Parameter Simulation Sales'[Parameter Simulation Sales Value]
Pete
Proud to be a Datanaut!
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 82 | |
| 48 | |
| 36 | |
| 31 | |
| 29 |