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.
Mi solicitud es esta, tengo dos tablas, una contiene números de teléfono móvil y otra tiene detalles de uso para esos números.
En el informe hay una segmentación de fecha que podemos seleccionar el número de meses que queremos ver números de teléfono móvil inactivos.
El truco es, si un número de móvil está activo en Januery e inactivo en otros meses, ya que el mes actual es Augest si seleccionamos 8 meses el número de perticuler no debe venir al informe ya que está activo en ese período seleccionado. Pero si seleccionamos 6 meses de la segmentación de datos ese número debería ser inactivo en ese período.
Lo que pensé es crear dos tablas para números activos e inactivos basados en las fechas. Y en el informe, filtre los números activos en función del intervalo de fechas de la segmentación de datos.
¿Cuáles son las formas de lograr esto en Power BI?
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Hola @shihanhh
Yo crearía una medida para este propósito
Suponiendo que no se proporciona ningún detalle sobre la estructura tabel. A continuación se muestran los nombres de las columnas y los datos que almacenará.
Móvil - tiene número de móvil
Fecha - es la fecha de activo inactivo
estado - almacena activo o inactivo
Active_or_inactive: CALCULATE(MIN(table[status]), allexcept(table,table[date],table[mobile]))
Hope it resolves your issue? Did I answer your question? Mark my post as a solution! Appreciate your Kudos, Press the thumbs up button!! Linkedin Profile |
Gracias por la respuesta @pranit828 y @AllisonKennedy . He actualizado la pregunta para obtener más aclaraciones.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Hola @AllisonKennedy El número 12345 está activo sólo en enero el registro inactivo para enero es 54321. Que puedes confundir.
He creado estas dos tablas en mayúsculas hay pocas otras lógicas para identificar como activas e inactivas. Por ejemplo, detalles de uso, suscripción hasta la fecha, etc...
Además, he añadido claves para relacionar estas dos tablas como Telephone+Year(Invoice_date)+Month(Invoice_date)
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
@AllisonKennedy Dim Date is already there but not dim phone numbers. I can add that.
Please note that this is just a small part of a big solution which is in production and the data model is not desined by me. Therefore, I cannot make big changes to the data model as it may break other bunch of reports.
The other question you asked I have put 12345 and also one record of 54321 to differentiate. Those two tables records are as it is I entered.
Hola @shihanhh
Yo mantendría sólo una tabla con en más columna que dice 'Estado' y usaría la siguiente.
Cortar la tabla en dos para solo activo/inactivo podría no ser la mejor solución.
Active_or_inactive = CALCULATE(MIN(table[status]), allexcept(table,table[date],table[Telephone]))
Hope it resolves your issue? Did I answer your question? Mark my post as a solution! Appreciate your Kudos, Press the thumbs up button!! Linkedin Profile |
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |