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.
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!
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 |
---|---|
117 | |
104 | |
77 | |
73 | |
52 |
User | Count |
---|---|
145 | |
109 | |
109 | |
90 | |
64 |