Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
YOSIEMPREYO12
Frequent Visitor

Primera compra

Buen día

Tengo una tabla con las siguientes columnas, fecha, local, compras.

Hay también un filtro de fechas que no puedo quitar

 

Necesito una medida o algo que me permita mostrar cuál fue la compra sin importar el filtro que esté usando

 

Se podrá?

Gracias

2 ACCEPTED SOLUTIONS
v-dineshya
Community Support
Community Support

Hi @YOSIEMPREYO12 ,

Thank you for reaching out to the Microsoft Community Forum.

 

This measure ignores all filters, including date filters

First Purchase Date =
CALCULATE(
MIN('Table'[Date]),
ALL('Table')

)

 

This measure ignores filtering only on the Date column

First Purchase Date =
CALCULATE(
MIN('Table'[Date]),
ALL('Table'[Date])

)

 

If my response has resolved your query, please mark it as the Accepted Solution to assist others. Additionally, a 'Kudos' would be appreciated if you found my response helpful.

Thank you

View solution in original post

You cannot show first date in the Date column, because it is being filtered.  You have to use different column or visual to display it. You can show first Purchase Amount is the separate column as well:

First Purchase = CALCULATE(SUM('Table'[Amount]),
                                              TOPN(1, ALL('Table'), 'Table'[Date], ASC),
                                              'Table'[Location] = SELECTEDVALUE('Table'[Location]))

View solution in original post

8 REPLIES 8
YOSIEMPREYO12
Frequent Visitor

Si funcióna 

Gracias

v-dineshya
Community Support
Community Support

Hi @YOSIEMPREYO12 ,

Thank you for reaching out to the Microsoft Community Forum.

 

This measure ignores all filters, including date filters

First Purchase Date =
CALCULATE(
MIN('Table'[Date]),
ALL('Table')

)

 

This measure ignores filtering only on the Date column

First Purchase Date =
CALCULATE(
MIN('Table'[Date]),
ALL('Table'[Date])

)

 

If my response has resolved your query, please mark it as the Accepted Solution to assist others. Additionally, a 'Kudos' would be appreciated if you found my response helpful.

Thank you

Hi @YOSIEMPREYO12 ,

Thank you for reaching out to the Microsoft Community Forum.

 

If my response has resolved your query, please mark it as the Accepted Solution to assist others. Additionally, a 'Kudos' would be appreciated if you found my response helpful.

Thank you

danextian
Super User
Super User

Hi @YOSIEMPREYO12  As always, please provide a workable sample data (not an image), your expected result from the same sample data and your reasoning behind. You may post a link to Excel or a sanitized copy of your PBIX stored in the cloud.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

No tengo mucho para mostrar son solo 3 columnas

Necesito la primera fecha de compra sin importar el filtro que tenga puesto

Solo eso

 

Gracias

Yes, it is possible. You need to build DAX measure using CALCULATE and filter ALL(Table[Dates])

Links to review:
https://learn.microsoft.com/en-us/dax/all-function-dax
https://learn.microsoft.com/en-us/dax/calculate-function-dax

Pero eso no me trae la primera fecha

Falta algo me parece

You cannot show first date in the Date column, because it is being filtered.  You have to use different column or visual to display it. You can show first Purchase Amount is the separate column as well:

First Purchase = CALCULATE(SUM('Table'[Amount]),
                                              TOPN(1, ALL('Table'), 'Table'[Date], ASC),
                                              'Table'[Location] = SELECTEDVALUE('Table'[Location]))

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.