Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I have a table that has number of tickets dealt with an employee
I then have 2 filtered (2019/2020) card visuals showing show the number of tickets for 2019/2020.
I then want to have a 3rd card showing the differecne between the 2019 & 2020 values. Is this possible?
Same problem. How to do operations between cards and that the result changes depending on filtered in the visualization. It's possible??
@StuartSmith , find this year vs last year using date calendar and take there diff, using card it is not possible to have diff
This Year = TOTALYTD(Sum('order'[Date]),'Date'[Date])
Last Year = TOTALYTD(Sum('order'[Date]),dateadd('Date'[Date],-1,year))
This Year = CALCULATE(sum('order'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])))
Last Year = CALCULATE(sum('order'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])-1))
diff = [This Year] -[Last Year]
create a measure
= CALCULATE(COUNTROWS(Table), Table[Year]=2020) - CALCULATE(COUNTROWS(Table), Table[Year]=2019)
and put it on the card
Could you help me? I try to do the same thing, but i cant.
Thanks for a quick response. As some of the rows will contain "0" and some will contain more than "1!, the "CountRows" function gives an incorrect values (see below). I guess it needs to be a SUM measure to count the sum of the rows that meet the criteria of 2019 or 2020
Hi! I have the same question like you, but i cant solve my problem. Could you help me?
Figured it out...
Back again, and also figured out the conditional formattion...
But noticed that the card will only go down to -433 and then wont change! any ideas?
@az38 & @amitchandak Thanks for you help and I have now got the result I wanted. 👍
create a measure
Color = IF([Ticket Difference] > 0, "Green", "Red")
go to visual settings, data label and press Fx button. Choose Format by field value and select new Colour Measure
User | Count |
---|---|
94 | |
86 | |
78 | |
70 | |
63 |
User | Count |
---|---|
114 | |
99 | |
97 | |
65 | |
59 |