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

How to make this possible (showing blank record)?

I have upload my Powerbi copy here.

 

On the visual, I have three people who are counted in "Census", but only one person (John Taylor) has Immunizations.

JustinDoh1_0-1731714454755.png

So, when I click the "Taylor, John", I am able to see the next hierarchy records - details of Immunizations:

JustinDoh1_1-1731714624613.png

 

But, the issue is, other two people have disappeared from the visual.

 

I am trying to see is if I click the + , I would like to see blank record shown but keep the person's name.

JustinDoh1_3-1731715027405.png

  

JustinDoh1_2-1731714881955.png

 

Is it possible?

 

1 ACCEPTED SOLUTION

update your Census Count measure "Census Count = DISTINCTCOUNT(Immunizations[ClientId])"

with the below code:

Census Count=
CALCULATE(
    DISTINCTCOUNT(Immunizations[ClientId]),
    TREATAS(
        VALUES(BridgeTable[ClientID]),
        Immunizations[ClientID]
    ),
    BridgeTable[DescriptionStatus] <> ""
)

See after updating measure, this is working exactly as you have requested. 

shafiz_p_0-1732072625483.png

 

 

Please accept it as a solution, if this works and a kudos!!

View solution in original post

16 REPLIES 16
Anonymous
Not applicable

Hi all,thanks for the quick reply, I'll add more.

Hi @JustinDoh1 ,

Regarding your question, simply change your measure value format to "Text" and concatenate a string after the blank value.

DISTINCTCOUNT(Immunizations[ClientID]) &""

vzhouwenmsft_1-1731897218353.png

 

Best Regards,
Wenbin Zhou

 

 

@Anonymous 

Thank you for your help. Unfortunately, this is not what I am looking for.

I am still wondering if this is possible (with one blank line underneath "Doe, Jane" and "Dean, James"):

JustinDoh1_0-1731958200828.png

 

 

JustinDoh1
Post Prodigy
Post Prodigy

@Ahmedx Thank you for your help. When I clicked the + for "Doe, Jane" and "Dean, James", other immunizations data show up that belong to "Taylor, John", and that is not good. I don't think this would work. Thanks.

Ashish_Mathur
Super User
Super User

Hi,

Share the download link of the PBI file.


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

@Ashish_Mathur 

Thank you for your help. I have shared the link on the original post.

But here is the same link.

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1731812562418.png

 


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

@Ashish_Mathur  Thank you for your help.

Actually, I want to show blank when I click the + for "Doe, Jane" and "Dean, James" something like below, but I would not take that whole space.

JustinDoh1_0-1731955653923.png

 

You are welcome.  Someone who really understand your requirement will help.


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

Hi @JustinDoh1  Right click on Rows in the Build Pane option and check Show Item with no data and you are done. Check image:

shafiz_p_0-1731726626750.png

 

After expanding JohnTaylor:

shafiz_p_1-1731726691441.png

 

Clicked all + buttons:

shafiz_p_2-1731726783303.png

 

 

 

Hope this helps!!

If this solved your problem, please accept it as a solution and a kudos!!

 

Best Regards,
Shahariar Hafiz



@shafiz_p  Thank you for your help.

I am going to see if this work with my manager, but I was expecting to see "blank row" when the + is clicked. Do you think it is possible?

Use count of client ID as a measure. You will be able to see all blank rows.

@shafiz_p 

Can you please eleborate on this or possibly show on image or on the updated PBI file?

Hi @JustinDoh1  Previously I mis understood what you need actually. You want a blank rows when expand fullname, rather repeating all ImmunizationDesc for client who has blank distinct count. Why you need such requirement I don't understand, where show Item with no data covers the full picture.

 

However, to achieve this, you need a bridge table. Check this out, if it works:
1. First Create a BridgeTable, with the crossjoin between clientID from Census Table and ImmunizationDesc from Immunizaiton Table. Try below code to create such table:

 

 

BridgeTable = 
CROSSJOIN(
    DISTINCT(Census[ClientID]),
    DISTINCT(Immunizations[ImmunizationDesc])
)

 

 

shafiz_p_0-1731989714148.png

 

2. Create a DescriptionStatus column which evaluates which description is in the original data table and which are not. If, then return such description else blank. Try below code:

 

 

DescriptionStatus = 
IF(
    COUNTROWS(
        FILTER(
            Immunizations, 
            Immunizations[ClientID] = BridgeTable[ClientID] && 
            Immunizations[ImmunizationDesc] = BridgeTable[ImmunizationDesc]
        )
    ) > 0,
    BridgeTable[ImmunizationDesc],
    ""
)

 

 

shafiz_p_1-1731989913612.png

 

3. Now create one to many relationship between census[ClientID] and BridgeTable[ClientID]. See image:

shafiz_p_2-1731990003879.png

 

4. Update your Census Count measure with the below code:

 

 

Census Count = 
CALCULATE(
    DISTINCTCOUNT(Immunizations[ClientId]),
    TREATAS(
        VALUES(BridgeTable[ClientID]),
        Immunizations[ClientID]
    ),
    BridgeTable[DescriptionStatus] <> "No Desc"
)

 

 

Here, TreatAS creating a virtual relationship between the 2 tables through ClientID.

5. Now replace ImmunizationDesc column of Immunizations table from matrix row section and place DescriptionStatus column from BridgeTable in the row section and place newly updated measure in the value section and replace the previous one.

Here is the updated version of matrix output:

shafiz_p_4-1731990383286.png

shafiz_p_3-1731990345857.png

You can use any description in this blank if you want. For example, I want to notify user that no description. Just replace blank in the BridgeTable blank with "No Desc" , and you are done. Check out:

shafiz_p_5-1731990543230.png

 

Hope this meets your requirement.
If , please accept it as a solution and a kudos!!

Best Regards, 
Shahariar Hafiz

 

@shafiz_p I am having difficulty replicating Part 5.

JustinDoh1_0-1732059724419.png

 

I have uploaded my PBI file with what you indicated here.

Can you please take a look and possibly send me/share the updated PBI file that works (with what you have indicated)? Thank you so much for your help.

I would like to have a "" instead of "No Desc".

update your Census Count measure "Census Count = DISTINCTCOUNT(Immunizations[ClientId])"

with the below code:

Census Count=
CALCULATE(
    DISTINCTCOUNT(Immunizations[ClientId]),
    TREATAS(
        VALUES(BridgeTable[ClientID]),
        Immunizations[ClientID]
    ),
    BridgeTable[DescriptionStatus] <> ""
)

See after updating measure, this is working exactly as you have requested. 

shafiz_p_0-1732072625483.png

 

 

Please accept it as a solution, if this works and a kudos!!

Ahmedx
Super User
Super User

pl try this

Screenshot_2.png

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors