The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hola!
Tengo una tabla con ordenes de servicio, estas ordenes tienen dos columnas con fechas, una agendada y la otra cuando se ejecutó. Necesito dentro de la visualización filtrar un rango de fechas y que me calcule cuantas ordenes de servicio se agendaron para ese rango y cuantas se ejecutaron. Hasta ahora solo he logrado que me arroje la cantidad de ordenes ejecutadas ya que esta es la fecha principal para todo el modelo de datos.
Muchas gracias.
Saludos!
Solved! Go to Solution.
Hi @Anonymous ,
I have created a sample for your reference, please check the following steps as below.
1. Create a date table as below and make it related to the fact table like that.
date = CALENDAR(DATE(2019,01,01),DATE(2019,01,31))
2, Based on that, create two meausres as below to get the excpted result.
end = CALCULATE(COUNTROWS('Table'),USERELATIONSHIP('Table'[end date],'date'[Date]))
start = COUNTROWS('Table')
For more details, please check the pbix as attached.
You can refer to my article. It shows how to use two dates.
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
https://community.powerbi.com/t5/Community-Blog/Power-BI-Working-with-Non-Standard-Time-Periods/ba-p...
https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601
Hi @Anonymous ,
I have created a sample for your reference, please check the following steps as below.
1. Create a date table as below and make it related to the fact table like that.
date = CALENDAR(DATE(2019,01,01),DATE(2019,01,31))
2, Based on that, create two meausres as below to get the excpted result.
end = CALCULATE(COUNTROWS('Table'),USERELATIONSHIP('Table'[end date],'date'[Date]))
start = COUNTROWS('Table')
For more details, please check the pbix as attached.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
102 | |
96 | |
80 | |
62 | |
56 |
User | Count |
---|---|
261 | |
120 | |
113 | |
83 | |
71 |