We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi all I am trying to write a dax code that looks down [flight_primary_document_number] for duplicates and then looks at [flight_date] to see if the duplicates have the same flight date. Any suggestions on what dax I should use here?
Hi, @Anonymous
You can also use a measure like this:
IsDifferentDate =
var currentNumber = SELECTEDVALUE(Flights[Number])
var summaryTable = CALCULATETABLE( SUMMARIZE( Flights, Flights[FlightDate]), REMOVEFIlTERS(Flights), Flights[Number] = currentNumber)
return IF ( COUNTROWS( summaryTable ) >= 2, "Yes", "No")
Credit to @johnt75 .
@Anonymous , Not very clear
A new column like
New column =
var _cnt = count(filter(Table, [flight Number] =earlier([flight Number] ) && [Date] =earlier([Date] ) ), [flight Number])
return
if(_cnt>1, "Yes", "No")
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 |
|---|---|
| 54 | |
| 37 | |
| 32 | |
| 17 | |
| 15 |
| User | Count |
|---|---|
| 66 | |
| 66 | |
| 39 | |
| 34 | |
| 25 |