Forum Discussion
Filtering based on parent grouping
Hi, v-yueyunzh-msft ,
Thank you very much for the detailed response. It worked as expected on the sample dataset, but unfortunately it does not give the same numbers as the query on the full dataset.
vs
The second image has the correct numbers. If you're unsure what could be causing this I can provide a larger sanitized dataset if you're able to look into this further for me.
Thanks!
Hi , ruiner
Thanks for your quick response!
I think it may be that there is some difference between my understanding and your needs. This is my undertand for your need:
If there is a problem with my understanding, you can point it out, and for your problem, you can provide me with a little more data, and then provide some detailed calculation process and results.
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
- ruiner3 years agoFrequent Visitor
Hi v-yueyunzh-msft ,
It was actually a problem with my slicers that I have fixed. I am still having a problem however. When multiple selections are present on the slicers the totals are cumulative instead of being per group.
Do you have any ideas how to correct this?
Thanks for your help!
- v-yueyunzh-msft3 years agoCommunity Support
Hi , ruiner
If you want the "total" show right, you can create a new measure based on the before, like this:
Measure 2 = var _t = ADDCOLUMNS(SUMMARIZE(ALLSELECTED('Query1'),'Query1'[CompanyId],'Query1'[FiscalPeriodId],'Query1'[EmployeeStatusId]),"measure",[Measure]) return IF(HASONEVALUE('Query1'[EmployeeStatusId]),[Measure],SUMX(_t,[measure]))Then you can test in the visual :
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
- ruiner3 years agoFrequent Visitor
Thanks again v-yueyunzh-msft. That wasn't the problem I was looking at yet but that did fix that issue.
What is happening is when the slicer is set to fiscal year 2021 the correct totals show
And when set to 2020 the correct totals are also shown
The problem is when both 2020 and 2021 are selected at the same time
The same thing happens when multiple values are selected for other slicers, such as the company slicer.