Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Good afternoon everyone
I need your help for the following
I have a report in which the objective is to compare the quantities sold between the selected years.
I select the yearsFilter
I have 2 measurements:
1st collects the quantities of the selected maximum year
year N =
I only have values in the 2nd year...
has anyone had the same problem?
Attention that the objective is not to compare the quantities with the previous year, the user chooses which years to compare, in the report the maximum year and the minimum year chosen by the user
Solved! Go to Solution.
I ended up creating a calendar table and connecting that table with the data one, I changed the formula date filters to the new calendar table and it worked with the max and min of years
thanks for the help and until next time 🙂
@ngomes Where are your column headings coming from? 1 year and 2 year?
hello Greg
column titles come from measurements
@ngomes Reading this a little closer, it makes sense what is going on. If your Ano slicer is coming from a date table for example and this is filtering your fact table and you have no rows for 2022 then getting the min and max year out of that table is going to result in the same year. Because 2021 and 2022 will filter the table down to just 2021 rows (no 2022 rows) but you are getting the MIN and MAX from the fact table it looks like versus you should probably be getting that from whatever table drives your slicer.
I ended up creating a calendar table and connecting that table with the data one, I changed the formula date filters to the new calendar table and it worked with the max and min of years
thanks for the help and until next time 🙂
It makes sense what you say Greg
so should I create a condition that only displays values when the max and min years are different or is there another way to get around this problem?
thanks for the great help
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 56 | |
| 47 | |
| 44 | |
| 20 | |
| 20 |
| User | Count |
|---|---|
| 73 | |
| 72 | |
| 34 | |
| 33 | |
| 31 |