To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Solved! Go to Solution.
Add another ) after 0 ) so you will have there 0 )),
Well, that is because you replace blank with 0 in your original measure.
So forget what we did, it's not related to your issue.
Why did you replace the blank with 0 inside the coalesce? You have blanks inside the range?
Anyway, if you share the file and what you need I could solve this quickly. Will need to continue later, going away from PC, so will ping here later tonight. Until then please try to share the file or a sample of it.
P.S. appreciate your kudos
@Anonymous wrap it with calculate like this:
CALCULATE(
[Your function],
TableName[Charger] = 'Active'
)
I'm not that profficient in Dax:
@Anonymousthe code is correct, just remove the [ before the FACT.
If you don't get the right result then the question does the original measure works fine for all charger types?
Add another ) after 0 ) so you will have there 0 )),
Well, that is because you replace blank with 0 in your original measure.
So forget what we did, it's not related to your issue.
Why did you replace the blank with 0 inside the coalesce? You have blanks inside the range?
Anyway, if you share the file and what you need I could solve this quickly. Will need to continue later, going away from PC, so will ping here later tonight. Until then please try to share the file or a sample of it.
P.S. appreciate your kudos
Hi SpartaBI,
I'm very gratefull for your assistance.
This function I currently use:
Average Sessions =
AVERAGEX (
VALUES ( 'Calendar'[Date] ),
COALESCE ( [SDR ID average per CP ID], 0 )
)
This is the formula that sort of works. It returns the results correctly, averaging the usage data including the days when the unit wasn’t in use, but the issue is that My calendar starts in 2020 so the formula calculates the Averages from 2020 not when my Connector was first used in 2021 Q3, and runs to Q4 2022, as per my calendar.
I just need the function to calculate all the O’s between the 1st use until last usage, e.g. today.
With this function I am calculating the SDR ID(unique number) Average per CP ID (unit number) Average, per day;
Some days the items are not in use, so that’s why I thought I need to add the coalesce calculation.
I am filtering the above function by the column (FACT TABLE[Connector]).
Please let me know if there's anything else you need to figure this out.
Thanks again,
J
Hey, won't be able today. Tomorrow ping me here and we'll do a quick zoom to look together
Thank you very much, I will share that with you later.
Best wishes,
J
Hi SpartaBI,
I think the previous issue is not that relevant now.
Could you please help me with this function instead?
Hi,
WIth regards to myt message earlier. I've tested it and in theory the "+ 0" and the "coalesce" formula work.
The issue is that I get the average by the Connector, not by the Charger Type.
I use my formula:
The charger type should give me 0.59, instead it sums up the three connectors (1.77)
What can I do?
Please assist, and thank you in advance.
Best,
J
@Anonymous hey, can you share a sample file maybe?
User | Count |
---|---|
14 | |
11 | |
6 | |
6 | |
5 |
User | Count |
---|---|
29 | |
17 | |
11 | |
7 | |
5 |