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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
pacifist
Helper II
Helper II

[DAX] values from table in inactive relationship

Hi, I'm sure this will be a piece of cake for the SMEs here.


Reports Table (reports_vw):

ReportNameID
report_a1
report_b2
report_c3


Metrics Table (metrics_vw):

ITEM_IDcpu_perc
20.0012


Reports table and Metrics Table are in inactive relationships through ID/ITEM_ID columns.
I'd like a result similar to this one:

ReportNameIDcpu_perc
report_a1 
report_b20.0012
report_c3 


I've tried to create a following dax:

 

_filteredByReportId = CALCULATE(
    DISTINCTCOUNTNOBLANK(metric_vw[ITEM_ID]),
    USERELATIONSHIP(metrics_vw[ITEM_ID], reports_vw[ID])
)

 

 when I add the above as a cross filter into the table visual, I get only a record for the report_b.

Helo is much appreciated.

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

 

Link to learn this: Show items with no data in Power BI - Power BI | Microsoft Learn

 

 

Jihwan_Kim_0-1698381427522.png

 

When you right-click one of your columns, there is an option to select "Show items with no data"

Jihwan_Kim_1-1698381531393.png

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

4 REPLIES 4
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

 

Link to learn this: Show items with no data in Power BI - Power BI | Microsoft Learn

 

 

Jihwan_Kim_0-1698381427522.png

 

When you right-click one of your columns, there is an option to select "Show items with no data"

Jihwan_Kim_1-1698381531393.png

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Hi 

interesting solution. I however have another question (how can I upload the file!?). Once you setup a new page, with the drill through using the ITEM_ID from the METRICS table, how do I achieve something like below so I can drill through to that page while retaining all rows?

pacifist_0-1698382459057.png

I will then answer this as marked though I admit I'm expanding the question. Thank you!

Hi,

I am not 100% sure if I understood your question, but I think you can try to create active relationship.

Jihwan_Kim_0-1698387128261.png

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

You understood perfectly, but I'm unable to activate it. I have other artifact types connecting to the same table!

If you resolve this I will buy you a beer 😉

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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