March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi all
I have accounts that may be duplicated.
I need to see which accounts have both "Y" and "N" in the 'New' column
I'd like a table that have these duplicate Account numbers.
Many thanks for your time!
Solved! Go to Solution.
Not sure if you need a DAX table or a measure to use in a table visual (or want this done in your query), but here is a DAX table expression that shows one way to do it. Just replace "Accounts" with your actual table name.
YesAndNo =
VAR vSummary =
SUMMARIZE ( Accounts, Accounts[Account], Accounts[New] )
VAR vResult =
FILTER (
DISTINCT ( Accounts[Account] ),
VAR vThisAccount = Accounts[Account]
RETURN
SUMX ( FILTER ( vSummary, Accounts[Account] = vThisAccount ), 1 ) = 2
)
RETURN
vResult
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Not sure if you need a DAX table or a measure to use in a table visual (or want this done in your query), but here is a DAX table expression that shows one way to do it. Just replace "Accounts" with your actual table name.
YesAndNo =
VAR vSummary =
SUMMARIZE ( Accounts, Accounts[Account], Accounts[New] )
VAR vResult =
FILTER (
DISTINCT ( Accounts[Account] ),
VAR vThisAccount = Accounts[Account]
RETURN
SUMX ( FILTER ( vSummary, Accounts[Account] = vThisAccount ), 1 ) = 2
)
RETURN
vResult
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Hi
Sorry- just a quick extra question:
How do you add the extra column to the YesAndNo table from the Accounts table? :
Accounts table:
YesAndNo table:
Fantastic! That is just what I wanted 🙂
Much appreciated
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
167 | |
117 | |
63 | |
57 | |
50 |