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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
jorismo
Helper II
Helper II

Table shows no data with 0

Hi all,

 

I'm having a trouble with the table that I'm using in my report.

 

The data that I received is the following:

Screenshot_5.png

 

There is also a 'Person D' wich has no active devices on his name.

 

Now what I want is an Table where also the following is shown:

Agent                                       Number of active devices

Monten Joris                            3

Person A                                   3

Person B                                   4

Person C                                   2

Person D                                  0

 

Now i've created the table by using the count(distinct) but then Person D isn't shown becaus of the value 0.

 

Is there an way to let Person D also shown in the table?

The option 'Show data with no data' isn't an option.

 

Thanks!

1 ACCEPTED SOLUTION

@jorismo,

 

You may refer to the following DAX that creates a new table.

Table =
SUMMARIZECOLUMNS (
    Table1[Agent Name],
    "Count", CALCULATE (
        DISTINCTCOUNT ( Table2[Active Devices] ),
        FILTER ( Table2, Table2[Agent Name] = MAX ( Table1[Agent Name] ) )
    )
        + 0
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
jthomson
Solution Sage
Solution Sage

Try creating a measure that counts the instances of each agent you have and stick +0 on the end of it?

Can you be my guidance for this?

I've just seen this as a work around for a few things where a visual shows as blank - I assume you've got your agents in some sort of related table to the data you displayed, if you look up how the countrows function works and run that across your data that should be a starting point

measure = if(isblank(measure, 0, sum(measure))

 

or + 0 on the end





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Maybe I wasn't cleared enough in my posts sorry about that.

 

I've got 2 data sources, the first contains all the employees and their team. The second one contains all the number of active devices on their name.

I've created an 'inner join' from those 2 tables (Active devices on employees).

 

This results in an table where only the employees with one or more active devices on their name are show.

Due to this the agents aren't shown in the table that I use in my report.

 

Is there a possibility that all agents that are in the data source (employees and their team) are shown in any way together with the sum(distinct) off the active devices on their name. And for the employess without any devices on their name an 0 is shown?

 

Thanks!

@jorismo,

 

You may refer to the following DAX that creates a new table.

Table =
SUMMARIZECOLUMNS (
    Table1[Agent Name],
    "Count", CALCULATE (
        DISTINCTCOUNT ( Table2[Active Devices] ),
        FILTER ( Table2, Table2[Agent Name] = MAX ( Table1[Agent Name] ) )
    )
        + 0
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors