Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Buenos dias, estoy tratando de realizar el siguiente calculo en DAX pero me estoy encontrando con un problema.
Tengo una tabla de ventas que se llama VENTAS_FACT
Lo que yo quiero mostrar la suma de clientes (distinct) por año en cada linea
Este seria el ejemplo de lo que necesito
Ahora, cuando utilizo la formula siguiente logicamente me trae la suma de todos los clientes de la tabla sin importar el filtro año:
Solved! Go to Solution.
@Anonymous , In the date table you should have a new column for month, year etc.
Also when mark that as date table you will not get hierarchy
calculate(countrows(values(VENTAS_FACT[CODIGO_CLIENTE])), all(DM_FECHA[Mes]))
example
Addcolumns(calendar(date(2020,01,01), date(2021,12,31) ), "Month no" , month([date])
, "Year", year([date])
, "Month Year", format([date],"mmm-yyyy")
, "Month year sort", year([date])*100 + month([date])
, "Month",FORMAT([Date],"mmmm")
, "Month sort", month([DAte])
)
@Anonymous , In the date table you should have a new column for month, year etc.
Also when mark that as date table you will not get hierarchy
calculate(countrows(values(VENTAS_FACT[CODIGO_CLIENTE])), all(DM_FECHA[Mes]))
example
Addcolumns(calendar(date(2020,01,01), date(2021,12,31) ), "Month no" , month([date])
, "Year", year([date])
, "Month Year", format([date],"mmm-yyyy")
, "Month year sort", year([date])*100 + month([date])
, "Month",FORMAT([Date],"mmmm")
, "Month sort", month([DAte])
)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |