Filter propagation

Hello,

I have the following facts table with the date of banking transactions:

It is linked to the date table below:
image
The date is the first column and I’ve added the first day of the month on the last column. I’ve also added the name of the month, like “Jan-18”.

The data model is as such:

I have a measure that SUMs the amount in the fact table which is the field “Mont”.

I’ve done another measure that calculates a 12 month running total of this measure, which is:
image

Both measures work fine as shown below, when I put the date as the row header:
image

However, if I change the row to the name of the month, which is also in the date table, it doesn’t work any more:
image

What I can’t understand is why Power BI cannot calculate based on the date field in the background, and show the result with the name of month header, as both fields are in the date table.

I’m not too bothered about this model, but I feel I’m missing some key logic in DAX.

Thank you for your support if anyone can help!

@Pbovet That’s normal. MIN/MAX will we evaluated differently if you put Months on the rows.

It’s not ideal, but you could choose to add the full date column to the report, and the Month/Year column, then reduce the column size of the date column to hide it.

image

image

As you can see in the above shot, the Date column is still on the table, I just resized the column width to hide it.

But, this is a ‘hacky’ solution - so you need to remember to always:

  1. turn of the Auto-Size Column Width (Column Headers)
  2. turn off Word Wrap (Column Headers)
  3. turn off Word Wrap (Values)
  4. optional change the font color for the column you are hiding in case an end-user manages to do something you don’t expect :crazy_face:

eDNA example - hiding a column in a visual table.pbix (362.3 KB)

1 Like

Hi @Pbovet, did the response provided by @AntrikshSharma and @Heather help you solve your query? If not, how far did you get and what kind of help you need further? If yes, kindly mark as solution the answer that solved your query. Thanks!

Hi @Pbovet, we’ve noticed that no response has been received from you since the 13th of February. We just want to check if you still need further help with this post? In case there won’t be any activity on it in the next few days, we’ll be tagging this post as Solved. If you have a follow question or concern related to this topic, please remove the Solution tag first by clicking the three dots beside Reply and then untick the checkbox. Thanks!

Thank you for your reply. This is how I understand it but somehow I find it strange that Power BI can’t make the link. Still learning!
Regards
Pascal

Hello Heather,

Thank you for this workaround, it will do!
Regards
Pascal

1 Like

Hi @Pbovet, did the response provided by @AntrikshSharma and @Heather help you solve your query? If not, how far did you get and what kind of help you need further? If yes, kindly mark as solution the answer that solved your query. Thanks!

Hi @Pbovet, we’ve noticed that no response has been received from you since the 16th of February. We just want to check if you still need further help with this post? In case there won’t be any activity on it in the next few days, we’ll be tagging this post as Solved.

Hi @Pbovet, a response on this post has been tagged as “Solution”. If you have a follow question or concern related to this topic, please remove the Solution tag first by clicking the three dots beside Reply and then untick the check box.

Hello, the topic actually solved but I can’t find how to flag it as solved. Could you please help?
Thank you
Regards
Pascal