Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello,
I am attempting to recreate a visual from Tableau that has Cost on a bar chart. The bar chart has 12 months of data but also has buckets for data with dates outside of the 12 months.
See image below:
The formula within Tableau is the following:
So far, I have decided to create a calculated column with a switch function... and this is as far as I have gotten:
Solved! Go to Solution.
I was able to figure out the measure by creating a Month Description Column and using DATEADD <Today+365.
@dyttam You can use the Year and Month function to get the values respectively and add them.
=YEAR(date column) & MONTH(date column)
or you can use
=CONCATENATE(YEAR(date column), MONTH(date column))
Hmm.. Not sure I am following. I've stripped my DAX down to the basic level and this is how it's functioning so far.
I need the (blank) values to be put into two additional buckets.
The first bucket would be "Expiry Date > 365 Days".
What DAX would you use to grab all rows that would be an Expiry Date 365+?
I tried TODAY() + 365 but that made no sense (clearly). Perhaps I could use DATEADD[FactTable[Expiry_Date], 1, YEAR ?
The second bucket would be the actual date that fall within the next 365 days (in month and year).
I'm stumped on how to write this measure.
I was able to figure out the measure by creating a Month Description Column and using DATEADD <Today+365.
Hi @dyttam ,
So your issue is solved,right?
If so ,could you pls mark the reply as answered to close it?
Much appreciated.
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
136 | |
117 | |
101 | |
71 | |
61 |