Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi All,
I have a dataset like below.
| Year | Type | Amount |
| 2020 | A | 10 |
| 2020 | B | 20 |
| 2020 | C | 30 |
| 2020 | D | 40 |
| 2020 | E | 50 |
| 2021 | A | 60 |
| 2021 | B | 70 |
| 2021 | C | 80 |
Now, I create a measure to calculate the Last Year (2020) result and show it together with this year data like below.
Slicer = 2021
| Type | This Year | Last Year |
| A | 60 | 10 |
| B | 70 | 20 |
| C | 80 | 30 |
However, I would like the "Type" also contain what 2020 have but 2021 no record like below.
| Type | This Year | Last Year |
| A | 60 | 10 |
| B | 70 | 20 |
| C | 80 | 30 |
| D | 0 | 40 |
| E | 0 | 50 |
Anyone how to do it?
Solved! Go to Solution.
Hi,
You may download my PBI file from here.
Hope this helps.
Hi,
You may download my PBI file from here.
Hope this helps.
That what I need. Thank you.
You are welcome.
Try adding +0 in your measure formula and see if it works
Hi, @KH_Mike
Can you try this? Right click on Type field:
https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-show-items-no-data
Proud to be a Super User!
Check out the April 2026 Power BI update to learn about new features.
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.
| User | Count |
|---|---|
| 43 | |
| 38 | |
| 35 | |
| 21 | |
| 15 |
| User | Count |
|---|---|
| 63 | |
| 58 | |
| 28 | |
| 27 | |
| 25 |