cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jenelrosales Resolver II
Resolver II

Calculate Column Does Not Respond to Filter

I am creating a Matrix in Power BI. The rows consist of 2 Types, which then has several Categories and the Categories consist of sectors. So basically, there is a hierarchy in my Matrix and the value of each row depends on the Column Headers. I created one Measure for the values of the Matrix. The measure made use of the SWITCH command and IF statements, which basically put all measures together in one. I got this one correct, the only problem is the sub totals (Categories) and total (Types) do not add up correctly even if I use the SUMX command in my measure.

So I thought of creating a calculated column using my measures. But when I did this, the values are not responding to my filters, like date, IDs, etc. It just shows the TOTAL values for every Sector.

Any idea on how I could resolve this? Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
jenelrosales Resolver II
Resolver II

Re: Calculate Column Does Not Respond to Filter

Thank you. I finally solved it. I was placing the SUMX statement in the wrong place. It should be placed before the SWITCH commands. 

View solution in original post

2 REPLIES 2
Microsoft v-yulgu-msft
Microsoft

Re: Calculate Column Does Not Respond to Filter

Hi @jenelrosales,

 

To get the correct total value of a measure, please refer to this article:

Dealing with Measure Totals

 

Besides, as you know, calculated column is not a correct solution in your scenario as it cannot return values dynamically based on slicer.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
jenelrosales Resolver II
Resolver II

Re: Calculate Column Does Not Respond to Filter

Thank you. I finally solved it. I was placing the SUMX statement in the wrong place. It should be placed before the SWITCH commands. 

View solution in original post

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors