Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
Hi,
I'm trying to create a column which will display an outcome depending on the results of the duplicate detection
This is sample data that I'm working with
This is the outcome I want.
The first thing I look at is if Address, Status and Company are all the same. After looking at that we will then look at the Agent, if there is multiple Agents for the same Address then we will display "Half". If there is one or more Address that have the same Agent then we will display "Full"
This is the outcome I got from Power BI. I did a simple Concatenate for the Conc column the merge the columns and then used this DAX formula to return the "Half" or "Full"
Half/Full Appointment =
Var Appoint = 'Table'[Conc]
var AppCount =
CALCULATE(
COUNTROWS('Table'),
all('Table'),
'Table'[Conc] = Appoint
)
return
IF(AppCount <= 1, "Full", "Half")
Does anyone know how to get the outcome that I'm looking for?
PBI File: https://www.dropbox.com/s/40kthwjmdwufm7l/Appoint.pbix?dl=0
Cheers,
Mike
Solved! Go to Solution.
Please try this column expression to get your result.
HalfFull =
VAR agentcount =
CALCULATE (
DISTINCTCOUNT ( 'Table'[Agent] ),
ALLEXCEPT ( 'Table', 'Table'[Address], 'Table'[Status], 'Table'[Company] )
)
RETURN
IF ( agentcount = 1, "Full", "Half" )
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Please try this column expression to get your result.
HalfFull =
VAR agentcount =
CALCULATE (
DISTINCTCOUNT ( 'Table'[Agent] ),
ALLEXCEPT ( 'Table', 'Table'[Address], 'Table'[Status], 'Table'[Company] )
)
RETURN
IF ( agentcount = 1, "Full", "Half" )
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Thank you, Pat!
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 |
|---|---|
| 53 | |
| 40 | |
| 38 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 69 | |
| 68 | |
| 34 | |
| 33 | |
| 30 |