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
Dunner2020
Post Prodigy
Post Prodigy

Displaying values that are not present in the table

Hi there,

I got a table which looks as follow:

 

Category Name

Value

A

12

B

10

C

15

 

I'm displaying the category name and its value using table visual in Power BI. Now I wanted to show Category Name 'D' and its value to 0 in the table visual. As you can see that Category Name 'D' does not exist in the table. However, I wanted to display in the visual. Is there any way of doing that? Any suggestions??

1 ACCEPTED SOLUTION
VahidDM
Super User
Super User

Hi @Dunner2020 

 

You can use DAX to create a new table, a calculated table, like so (Modeling Menu --> Calculations ribbon --> "New Table"):

 

new table = 
UNION(
    'Table'
    , ROW(
        "Category Name", "D"
        ,"Value", 0      
    )
)

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!!

 

View solution in original post

1 REPLY 1
VahidDM
Super User
Super User

Hi @Dunner2020 

 

You can use DAX to create a new table, a calculated table, like so (Modeling Menu --> Calculations ribbon --> "New Table"):

 

new table = 
UNION(
    'Table'
    , ROW(
        "Category Name", "D"
        ,"Value", 0      
    )
)

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!!

 

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

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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