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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.