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.
Hi,
I would like to compare number of all projects to the projects that require service intervention.
I have two queries "Service" and "Orders". Inside each I have those columns
1. Orders
- ProjectNumber
- CreationDate
- Product
- ProductSoftware
- other
2. Service
- ProjectNumber
- CreationDate
- Reason
I would like to plot cumulative distinct counts of the projects and cumulative distinct count of the projects with service intervention
Something like that
Remarks
- We need to be able to use all slicers (especialy "Product", "ProductSoftware" and "Reason")
- It is necesery that projects with service intervention are distinct, as we can have several intervention for one project but we would like to see only the sum of the problematic projects based on the slicers
Solved! Go to Solution.
Hi @jtomczyk ,
According to your description, the products that appear in the service table are marked and added up separately, is that what you mean? I think I need to create a separate date table, I did a test reference as follows:
M_1 =
CALCULATE (
COUNTROWS ( Orders ),
ALL ( Orders ),
Orders[CreationDate] <= MIN ( Orders[CreationDate] )
)
M_2 =
CALCULATE (
COUNTROWS ( Service ),
ALL ( Service ),
Service[CreationDate] <= MIN ( Service[CreationDate] )
)
If the problem is still not resolved, please provide detailed error information and test data. Looking forward to your feedback.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @jtomczyk ,
According to your description, the products that appear in the service table are marked and added up separately, is that what you mean? I think I need to create a separate date table, I did a test reference as follows:
M_1 =
CALCULATE (
COUNTROWS ( Orders ),
ALL ( Orders ),
Orders[CreationDate] <= MIN ( Orders[CreationDate] )
)
M_2 =
CALCULATE (
COUNTROWS ( Service ),
ALL ( Service ),
Service[CreationDate] <= MIN ( Service[CreationDate] )
)
If the problem is still not resolved, please provide detailed error information and test data. Looking forward to your feedback.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@jtomczyk , You need to have common date Table. And one additional copy of project table as diemsion, which will join with project and service.
Date will also join with project and service
Then you can create measure using count from each fact
Cumm project= CALCULATE(Count(project[project]),filter(allselected('Date'),'Date'[date] <=max('Date'[date])))
Cumm service= CALCULATE(Count(service[project]),filter(allselected('Date'),'Date'[date] <=max('Date'[date])))
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 |
---|---|
98 | |
95 | |
83 | |
70 | |
67 |
User | Count |
---|---|
118 | |
106 | |
93 | |
79 | |
72 |