Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
I have the monthly change and monthly change %, but I cannot figure out how to get the measures for YTD change and YTD % in green below. Please see data below.
Tables | field |
AsofDate | as of date |
pptsCounts | Med All |
Measures |
Medical TY = sum(PPTCounts[Med All]) |
Medical LM = CALCULATE(PPTCounts[Medical TY], PREVIOUSMONTH(AsofDate[As of Date])) |
Medical MTH Delta = Medical MTH Delta = [Medical TY] - [Medical LM] |
Mth % change = Divide([Medical TY], [Medical LM], blank())-1 |
@Anonymous , Are your YTD formula correct?
I was expecting
YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"12/31"))
Last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-1,Year),"12/31"))
to have color you can use conditional formatting like
Color measure =
Switch( True() ,
[diff] >0 , "green" ,
"Red"
)
And you can use this in conditional formatting with field value option
Color Field - Color Measure - Conditional formatting
https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-numbers-in-the-column
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values
https://www.youtube.com/watch?v=RqBb5eBf_I4
Hi, thanks for taking a look at this.. I need the dax syntax to get ytd growth and ytd % growth for Med All. The info above was just a mock up from Excel, which is not my source data. I need to do this in dax similar to how you showed me how to get the month to month growth and % growth in this request
thx
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
19 | |
14 | |
10 | |
7 |