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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
frank_fillingim
Regular Visitor

Conditional Column Based on Row and Column Conditions

I am fairly new to Power Bi.  I've completed a few visualizations but nothing that has challenged me to use specific row and column criteria to create a new conditional column.  My challenge is to create a count of objects based on certain conditions. What I have assets called "Brass Tag" with components called "Nozzels." Some "Nozzles" have multiple attributes called "TML" in this instance.  I'm try to determine how many "Nozzles" have multiple "TMLs".  The multiple "TMLs" is indicated by the "Brass Tag" and the "Nozzle" being the same info while "TML" column would list 01, 02, etc.

 

Capture.PNG

 

How would I create a conditional column with this info which would just say simply "multiple" if the "Brass Tag" value and "Nozzle Number" value are the same but "TML Number" has more than one entry value?

 

Thanks for the help.

 

1 ACCEPTED SOLUTION
Mariusz
Community Champion
Community Champion

Hi @frank_fillingim 

Try this.

VAR x = COUNTROWS(
    CALCULATETABLE(
        YourTable,
        ALLEXCEPT(YourTable, YourTable[Brass Tag], YourTable[Nozzle Number])
    ) 
) > 1
RETURN 
IF( x, "multiple", "single" )

Regards,
Mariusz

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

1 REPLY 1
Mariusz
Community Champion
Community Champion

Hi @frank_fillingim 

Try this.

VAR x = COUNTROWS(
    CALCULATETABLE(
        YourTable,
        ALLEXCEPT(YourTable, YourTable[Brass Tag], YourTable[Nozzle Number])
    ) 
) > 1
RETURN 
IF( x, "multiple", "single" )

Regards,
Mariusz

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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