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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
mmv
Frequent Visitor

Object filter with display of unfilled and filled columns and values

Hello everyone,

I have a problem: I have a table that contains over 70 columns and over 10000 records.

 

My goal is to get a dashboard where I can filter by object name and display which columns are filled out for this object and what information is contained there.

I also want to display which columns are not filled out and preferably also display their amount.

 

For example:

 

NameData 1Data 2Data 3
a14 
b2 3
c314
d 2 

 

If I filter by "a" I want to see something like this as a result:

 

NameFilled columnsValueAmount of unfilled columnsUnfilled columns
aData 111Data 3
 Data 24  

Not everything has to be displayed in a table, those could just as well be different visual elements.

 

How could this be solved?

 

Thank you for your help!

1 ACCEPTED SOLUTION
v-heq-msft
Community Support
Community Support

Hi @mmv ,
Based on the data you provide, you can do the following:
Unpbviot  the data column

vheqmsft_0-1720494372139.png

Create a table

Table 2 = VALUES('Table'[Attribute])

Create relationship

vheqmsft_1-1720494412245.png

Create measures

Amount of unfilled columns = 
VAR allCount = 
CALCULATE(
    DISTINCTCOUNT('Table'[Attribute]),
    REMOVEFILTERS('Table'[Name])
)
VAR selected = DISTINCTCOUNT('Table'[Attribute])
RETURN
allCount - selected
Measure = 
IF(
    SELECTEDVALUE('Table'[Attribute]) IN VALUES('Table 2'[Attribute]),
    1,
    0
)

Create matrix

vheqmsft_2-1720494479593.png

Create a table using table2 and apply a filter

vheqmsft_3-1720494517941.png

Final output

vheqmsft_4-1720494541570.png

 

Best regards,
Albert He

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

2 REPLIES 2
v-heq-msft
Community Support
Community Support

Hi @mmv ,
Based on the data you provide, you can do the following:
Unpbviot  the data column

vheqmsft_0-1720494372139.png

Create a table

Table 2 = VALUES('Table'[Attribute])

Create relationship

vheqmsft_1-1720494412245.png

Create measures

Amount of unfilled columns = 
VAR allCount = 
CALCULATE(
    DISTINCTCOUNT('Table'[Attribute]),
    REMOVEFILTERS('Table'[Name])
)
VAR selected = DISTINCTCOUNT('Table'[Attribute])
RETURN
allCount - selected
Measure = 
IF(
    SELECTEDVALUE('Table'[Attribute]) IN VALUES('Table 2'[Attribute]),
    1,
    0
)

Create matrix

vheqmsft_2-1720494479593.png

Create a table using table2 and apply a filter

vheqmsft_3-1720494517941.png

Final output

vheqmsft_4-1720494541570.png

 

Best regards,
Albert He

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

 

 

foodd
Super User
Super User

Hello @mmv , and thank you for sharing a question with the Community.  This reply is informational.  Please remember to adhere to the decorum of the Community Forum when asking a question.

Please provide your work-in-progress Power BI Desktop file (with sensitive information removed) that covers your issue or question completely in a usable format (not as a screenshot) and any Source files in Excel format (.XLSX). You can upload these files to a cloud storage service such as OneDrive, Google Drive, Dropbox, or to a Github repository, and then share a file’s URL.

https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

This allows members of the Forum to assess the state of the model, report layer, relationships, and any DAX applied.

 

If your requirement is solved, please make THIS ANSWER a SOLUTION ✔️ and help other users find the solution quickly. Please hit the LIKE 👍 button if this comment helps you.  Proud to be a Super User!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.