Forum Discussion
Data shown repetetive
Hi,
I am fairly new to pbi and have a quick question. As you can see it shows the percentage for each year.
The measure I have calculated is only for 2021, so i do not understand why the year 2020 and 2019 are even showing. I have a filter for so only data starting from 1.06.2020 is selected.
Pls someone tell me how I get rid of 2019 + 2020 in this visualization (I only want 2021 to show).
thanks
You could also simply go in the visual filter and remove the year
But if you only show one year on the chart, maybe you could use a Card visual instead
4 Replies
- amitchandakSuper User
Anonymous , If you have use a measure like this
Calculate(sum(Table[Value]), Table[Year] =2021)
Then change it to
Calculate(sum(Table[Value]), filter(Table,Table[Year] =2021))
or
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
- AnonymousNot applicable
this is how i calculated the measure im trying to display
TSP_br for 2021 % difference from TSP_br for 2020 =VAR __BASELINE_VALUE = [TSP_br for 2020]VAR __VALUE_TO_COMPARE = [TSP_br for 2021]RETURNIF(NOT ISBLANK(__VALUE_TO_COMPARE),DIVIDE(__VALUE_TO_COMPARE - __BASELINE_VALUE, __BASELINE_VALUE))I have a quick measure for TSP_br for 2020 and TSP_br for 2021thanks for your help- AnonymousNot applicable
my co-worker once showed me how to remove something like in the problem I am facing (there is an option to remove it somwhere), it just dont remember how she did it