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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Syndicate_Admin
Administrator
Administrator

CONSULTA DAX: SUMA DE VALORES DISTINTOS DE UNA COLUMNA COMO MEDIDA

Hola

Tengo una mesa,

pat_idestadomonto financiado
1financiado100
1financiado100
1financiado100
1financiado100
2financiado200
3financiado300
4financiado0

Quería escribir una medida tal que devolviera la suma de la cantidad financiada considerando solo pat_id únicas,

el shoule de salida sea (100 + 200 + 300 + 0 ) = 600.

Ayúdame con esta consulta

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

@dharanisrees ,

¿Qué tal esto?

tomfox_0-1652120483737.png

Aquí el DAX:

SuMFundedAmount = 
VAR _helpTable =
SUMMARIZE (
    Table,
    Table[pat_id],
    Table[funded amount]
)
RETURN
SUMX ( _helpTable, [funded amount] )

¿Esto resuelve su problema? 🙂

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

@dharanisrees ,

¿Qué tal esto?

tomfox_0-1652120483737.png

Aquí el DAX:

SuMFundedAmount = 
VAR _helpTable =
SUMMARIZE (
    Table,
    Table[pat_id],
    Table[funded amount]
)
RETURN
SUMX ( _helpTable, [funded amount] )

¿Esto resuelve su problema? 🙂

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/

Gracias

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.