Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Visual filter does not work

Hi all,   I am trying to write simple DAX calculation. But the visual filter does not work as expected for DAX calculations.   Simple DIVIDE calculation works fine, as below.   But with t...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi Anonymous 

    I have test on your sample. I think your problem should be caused by ComplianceMonth column in your visual. ComplianceMonth column in your visual should be from Compliance table. However your filter Flag comes from related table Calendar. 

    So if you use ComplianceMonth column from Compliance table, the measure will show an incorrect result.

    Try to use the column in Calendar table instead of the column in Compliance .

    My test:

    You see above table visual in red box will show incorrect results like yours.

    Visuals as below which use MonthDate in Calendar table will show correct result.

    You can download the pbix file from this link: File

     

    Best Regards,

    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.