Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I try to create a table dynamically because if I create it in advance calculation never ends if I try to analyze a full year
I created a table and a calculated column which works in principle but I try to do it in one step
tab =
ADDCOLUMNS (
FILTER (
DISTINCT (
UNION (
DISTINCT ( Calls[Start Minute] ),
DISTINCT ( Calls[End Minute] )
)
),
// just to decrease amount of data
[Start Minute] >= DATE ( 2022, 12, 01 )
&& [Start Minute] <= DATE ( 2022, 12, 15 )
),
"CustomerA",
CALCULATE (
COUNTROWS ( Calls ),
FILTER (
Calls,
Calls[Start Minute] <= [Start Minute]
&& Calls[End Minute] >= [Start Minute]
&& Calls[Estate] = "DE_customerA"
&& Calls[Status] = "Successful"
)
) + 0
)
If I add the calculated column
Unfortunately I need this for several customers and if I add the columm for each of them my system is not able to process (works if I limit the rows of the calls
I get a different result for CustomerA_OK and CustomerA, seems like the column [Start Minute] doesn't work, but I have no idea who to use the correct value even within CALCULATE
The idea is to create a measure which calculates the maximum for a specific timespan and a specific customer.
any hints would be great
Solved! Go to Solution.
I think I found a solution (but I do not understand the difference)
Assuming the following sample data
Start Minute | End Minute | Estate | Status |
01.12.2022 12:01 | 01.12.2022 12:05 | CustomerA | Successful |
01.12.2022 12:02 | 01.12.2022 12:05 | CustomerB | Successful |
01.12.2022 12:03 | 01.12.2022 12:07 | CustomerA | Successful |
01.12.2022 12:03 | 01.12.2022 12:03 | CustomerA | Failed |
01.12.2022 12:03 | 01.12.2022 12:04 | CustomerB | Failed |
01.12.2022 12:03 | 01.12.2022 12:09 | CustomerB | Successful |
01.12.2022 12:05 | 01.12.2022 12:06 | CustomerB | Successful |
01.12.2022 12:06 | 01.12.2022 12:09 | CustomerA | Successful |
with
I think I found a solution (but I do not understand the difference)
Assuming the following sample data
Start Minute | End Minute | Estate | Status |
01.12.2022 12:01 | 01.12.2022 12:05 | CustomerA | Successful |
01.12.2022 12:02 | 01.12.2022 12:05 | CustomerB | Successful |
01.12.2022 12:03 | 01.12.2022 12:07 | CustomerA | Successful |
01.12.2022 12:03 | 01.12.2022 12:03 | CustomerA | Failed |
01.12.2022 12:03 | 01.12.2022 12:04 | CustomerB | Failed |
01.12.2022 12:03 | 01.12.2022 12:09 | CustomerB | Successful |
01.12.2022 12:05 | 01.12.2022 12:06 | CustomerB | Successful |
01.12.2022 12:06 | 01.12.2022 12:09 | CustomerA | Successful |
with
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |