Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Dear,
I'm trying a simple measure but first I need to know how to filter a table.
In the table each "NumReservation" has many rows, all with the same "Lead" value.
TABLE:
I would need to filter the table giving only a row by "Numreservation".
Like this.
WANTED TABLE
WANTED TABLE = FILTER ( TABLE, ??? )
Thankyou in advance,
Xavichetapia
Solved! Go to Solution.
Hi, @XAVICHETAPIA
You need create a column with a unique index in ‘Transform Data’ first.
(The column 'KPI'[indice] in the example you provided seems to contain duplicate values.)
Then you can create measure like:
Measure =
VAR min_indice =
CALCULATE ( MIN ( 'KPI'[indice] ), ALLEXCEPT ( 'KPI', 'KPI'[NumReserva] ) )
RETURN
IF ( SELECTEDVALUE ( 'KPI'[indice] ) = min_indice, 1, 0 )
And drag this measure to visual filter pane to filter data as below:
Best Regards,
Community Support Team _ Eason
Duplicated ReservationNumber=
CALCULATE ( COUNT ( [Numreservation] ), FILTER ( Dim_Employments, [Numreservation] = EARLIER ( [Numreservation] ),FILTER ( Dim_Employments, [Lead] = EARLIER ( [Lead] ))
) )
Did I answer your question? If so, please mark my post as a solution!
Proud to be a Super User!
Dear,
I found an error when using the EARLIER function.
I attached the pbix.
https://drive.google.com/file/d/1u9IDBpijtJVKtHLYnQlgEq8MI9yWJx0f/view?usp=sharing
My table is called KPI.
thks
Hi, @XAVICHETAPIA
You need create a column with a unique index in ‘Transform Data’ first.
(The column 'KPI'[indice] in the example you provided seems to contain duplicate values.)
Then you can create measure like:
Measure =
VAR min_indice =
CALCULATE ( MIN ( 'KPI'[indice] ), ALLEXCEPT ( 'KPI', 'KPI'[NumReserva] ) )
RETURN
IF ( SELECTEDVALUE ( 'KPI'[indice] ) = min_indice, 1, 0 )
And drag this measure to visual filter pane to filter data as below:
Best Regards,
Community Support Team _ Eason
I got this , it suits or not
Did I answer your question? If so, please mark my post as a solution!
Proud to be a Super User!
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 68 | |
| 61 | |
| 45 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 109 | |
| 108 | |
| 39 | |
| 30 | |
| 27 |