Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello PBI community,
I am having trouble trying to simply show a column from last year when I select a date on my slicer
Here is an example of my data:
Name | Date |
Coca | 2019 |
Fanta | 2019 |
Ice Tea | 2019 |
Pepsi | 2020 |
Fanta | 2020 |
Ice Tea | 2020 |
Sprite | 2020 |
Name | Date |
Coca | 2019 |
Fanta | 2019 |
Ice Tea | 2019 |
@Bastienlin_ , With separate date/year table, use these type of measures with name
This Year = CALCULATE(Count('Table'[Name]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])))
Last Year = CALCULATE(Count('Table'[Name]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])-1))
Hi @amitchandak thank you for your answer.
Nevertheless, your measure seems to only count the rows from a year and another. What I would like is to show the list of the column Names from a year and also the previous one.
If i select 2020 in my slicer, i want to show:
Name | Date |
Coca | 2019 |
Fanta | 2019 |
Ice Tea | 2019 |
And do you have an idea for my second point: "is it possible to show what are the differences between 2020 and the previous year ? For example, the differences we can see here from 2020 and the previous year, are that Coca is missing, and Pepsi & Sprite have been added."
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
80 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |