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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Kat_00
Frequent Visitor

Filter Table Userelationship

I'm working with a DAX function called “Name of Application,” which is supposed to replace the tbl_application[Name] column in my table using a field parameter. The function should display values only for the defined filter context.

When I include both the Name column and the Name of Application function in my model, the Name of Application column shows the expected values. However, if I remove the Name column from the table, I would expect only those rows to remain that previously contained a value in Name of Application. Instead, a significantly higher number of rows are filtered out, and the content displayed is incorrect.

What could be causing this issue? What changes do I need to make to ensure that Name of Application behaves as expected?

 
Name of Application =
IF (
    COUNTROWS(ALLSELECTED(tbl_entity[Type])) <> DISTINCTCOUNT(tbl_entity[Type]),
    CALCULATE (
        CALCULATE(
            FIRSTNONBLANK(tbl_application[Name],1),
            USERELATIONSHIP(tbl_application[Entity]  ,tbl_entity[Name]),
            USERELATIONSHIP(tbl_co_license_application[Vendor]  ,tbl_vendor[Name])
        ),
        CROSSFILTER(tbl_data_object[Application ID], tbl_application[Application ID], Both)  
    ),
    CALCULATE(
        FIRSTNONBLANK(tbl_application[Name],1),
        USERELATIONSHIP(tbl_application[Entity]  ,tbl_entity[Name]),
        USERELATIONSHIP(tbl_co_license_application[Vendor]  ,tbl_vendor[Name])
    )

With the colum tbl_application[Name]:

Kat_00_0-1724830998797.png

Kat_00_2-1724831805216.png

 

 

Without the colum tbl_application[Name]:

Kat_00_1-1724831047081.png

Kat_00_3-1724831887696.png

 

3 REPLIES 3
xifeng_L
Super User
Super User

@Kat_00.

 

You could set the column width of tbl_application[Name] to zero, which would hide the field visually, rather than actually removing the field.

 

 

Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !

 

Thank you~

 

For now, it's a simple fix that works. Thank you! However, I'm not sure if I'll encounter other issues in the future that might require a different solution.

Rupak_bi
Super User
Super User

Hi,

 

A measure gives results based on the defined logic against some axis or rows which should come from column. in your first visual, as you are refering the Name column, the measure displaying desired data as values. If you use Measure as axis, it will show a scaler value only. In this context, you need to put the above filter logic on all the value parameters you lik to display against Names and then use Name as row/Axis to get correct representation. Hope you understand this else, please share sample data



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.