Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext 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
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.
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.
Solved! Go to Solution.
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.
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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 50 | |
| 44 | |
| 42 | |
| 19 | |
| 19 |
| User | Count |
|---|---|
| 70 | |
| 68 | |
| 33 | |
| 32 | |
| 32 |