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.
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
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 |
---|---|
107 | |
93 | |
77 | |
65 | |
53 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |