Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello everybody,
I have been working with a report which worked great until we had a few months with no data. After searching around the forums, googling, and asking a few chatbots without resolve, I figured it is time to create my first forum post.
I have a table which shows opened tickets, closed tickets, net opened tickets and Open tickets aggregated.
Everything works as expected for months with data, but for months with no data, the aggregated measure turns blank.
The measure is calculated like:
Tickets Open Agg =
CALCULATE (
SUMX (
VALUES ( 'Date Table'[Date] ),
[Net Open tickets] + 0
),
FILTER (
ALL ( 'Date Table'[Date] ),
ISONORAFTER ( 'Date Table'[Date], MAX ( 'Date Table'[Date] ), DESC )
)
)
As you can see I have a proper date table with all the dates necessary. My problem seems to be that when I have no data, the Tickets open agg-measure simply isn't calculated, and I'm unable to force it to calculate.
If you need anymore detail, please let me know.
Many thanks in advance!
Solved! Go to Solution.
Hi MFelix ,thanks for the quick reply, I'll add more.
Hi @OliverFl ,
Try this
Measure =
CALCULATE(SUMX('Table',[Net_open_ticket]),FILTER(ALL(DateTable),ISONORAFTER([Date],MAX('DateTable'[Date]),DESC))
)
Final output
Best Regards,
Wenbin Zhou
Hi MFelix ,thanks for the quick reply, I'll add more.
Hi @OliverFl ,
Try this
Measure =
CALCULATE(SUMX('Table',[Net_open_ticket]),FILTER(ALL(DateTable),ISONORAFTER([Date],MAX('DateTable'[Date]),DESC))
)
Final output
Best Regards,
Wenbin Zhou
Hi @OliverFl ,
Try the following code:
Tickets Open Agg = SUMX(
ADDCOLUMNS(
SUMMARIZE(
'Date Table',
'Date Table'[year],
'Date Table'[month]
),
"_NetOpenTickets", ,CALCULATE(
[Net Open tickets] + 0,
FILTER(
ALL('Date Table'[Date]),
ISONORAFTER(
'Date Table'[Date],
MAX('Date Table'[Date]),
DESC
)
)
)
),
[_NetOpenTickets]
)
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi, thanks for the suggestion!
I'm afraid I still get the same problem, all months with no data are blanks but the aggregation measure works just fine.
I think there is a comma too much, right? "_NetOpenTickets", ,CALCULATE("
Yes you are correct about the comma sorry for teh error copying
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsUser | Count |
---|---|
84 | |
76 | |
74 | |
49 | |
39 |
User | Count |
---|---|
114 | |
56 | |
51 | |
42 | |
42 |