Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
KH_Mike
Helper III
Helper III

Show missing data in table

Hi All,

 

I have a dataset like below.

 

YearTypeAmount
2020A10
2020B20
2020C30
2020D40
2020E50
2021A60
2021B70
2021C80

 

Now, I create a measure to calculate the Last Year (2020) result and show it together with this year data like below.

 

Slicer = 2021

 

TypeThis YearLast Year
A6010
B7020
C8030

 

However, I would like the "Type" also contain what 2020 have but 2021 no record like below.

 

TypeThis YearLast Year
A6010
B7020
C8030
D040
E050

 

Anyone how to do it?

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

6 REPLIES 6
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

That what I need. Thank you.

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
KH_Mike
Helper III
Helper III

Hi @ALLUREAN , @PC2790 ,

 

Sorry that I tried the way you provided, still not able to do it.

PC2790
Community Champion
Community Champion

Try adding +0 in your measure formula and see if it works

ALLUREAN
Solution Sage
Solution Sage

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

 

 




Did I answer your question? Mark my post as a solution!


https://allure-analytics.com/
https://www.youtube.com/channel/UCndD_QZVNB_JWYLEmP6KrpA
https://www.linkedin.com/company/77757292/

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

March 2024 PBI Gallery Image

Power BI Monthly Update - March 2024

Check out the March 2024 Power BI update to learn about new features.