Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hola a todos
Estoy tratando de crear una medida DAX que puedo usar en un objeto visual de tarjeta que mostrará la suma total (columna de valor) para la columna de tipo - clientes para los últimos 2 días, incluyendo hoy.
hay un aspecto que los datos:
Fecha | Id | Tipo | Valor |
1/28/2021 | 1 | Cliente | 10 |
1/28/2021 | 1 | Interna | 15 |
1/28/2021 | 1 | Usuarios | 55 |
1/28/2021 | 1 | usuarios temporales | 669 |
1/28/2021 | 2 | Cliente | 69 |
1/28/2021 | 2 | Interna | 48 |
1/28/2021 | 2 | Usuarios | 86 |
1/28/2021 | 2 | usuarios temporales | 97 |
1/28/2021 | 3 | Cliente | 52 |
1/28/2021 | 3 | Interna | 34 |
1/28/2021 | 3 | Usuarios | 65 |
1/28/2021 | 3 | usuarios temporales | 888 |
1/29/2021 | 1 | Cliente | 463 |
1/29/2021 | 1 | Interna | 987 |
1/29/2021 | 1 | Usuarios | 525 |
1/29/2021 | 1 | usuarios temporales | 22 |
1/29/2021 | 2 | Cliente | 563 |
1/29/2021 | 2 | Interna | 1858 |
1/29/2021 | 2 | Usuarios | 11 |
1/29/2021 | 2 | usuarios temporales | 256 |
1/29/2021 | 3 | Cliente | 658 |
1/29/2021 | 3 | Interna | 478 |
1/29/2021 | 3 | Usuarios | 33 |
1/29/2021 | 3 | usuarios temporales | 25 |
1/28/2021 | 1 | Cliente | 154 |
1/28/2021 | 1 | Interna | 5454 |
1/28/2021 | 1 | Usuarios | 658 |
1/28/2021 | 1 | usuarios temporales | 578 |
1/28/2021 | 2 | Cliente | 596 |
1/28/2021 | 2 | Interna | 41654 |
1/28/2021 | 2 | Usuarios | 415 |
1/28/2021 | 2 | usuarios temporales | 552 |
1/28/2021 | 3 | Cliente | 6547 |
1/28/2021 | 3 | Interna | 552 |
1/28/2021 | 3 | Usuarios | 224 |
1/28/2021 | 3 | usuarios temporales | 4 |
gracias por la ayuda
Solved! Go to Solution.
@FatBlackCat30 , Basado en lo que tengo. Crear una medida como
calculate(count(Table[ID]), filter(Table, Table[date] >-Today() -1 && Table[date] <-Today() && Table[Type] á "customer"))
O
calculate(distinctcount(Table[ID]), filter(Table, Table[date] >-Today() -1 && Table[date] <-Today() && Table[Type] á "customer"))
suma de valor
calculate(count(Table[value]), filter(Table, Table[date] >-Today() -1 && Table[date] <-Today() && Table[Type] á "customer"))
@FatBlackCat30 , Basado en lo que tengo. Crear una medida como
calculate(count(Table[ID]), filter(Table, Table[date] >-Today() -1 && Table[date] <-Today() && Table[Type] á "customer"))
O
calculate(distinctcount(Table[ID]), filter(Table, Table[date] >-Today() -1 && Table[date] <-Today() && Table[Type] á "customer"))
suma de valor
calculate(count(Table[value]), filter(Table, Table[date] >-Today() -1 && Table[date] <-Today() && Table[Type] á "customer"))
funcionó perfectamente gracias por la ayuda
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.