Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
72 | |
67 | |
51 | |
38 | |
26 |
User | Count |
---|---|
87 | |
54 | |
45 | |
40 | |
36 |