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.
Hi,
I'm a PowerBI beginner and trying to put up a market share analysis for the place I work at but I encounter several issues on the way. I searched this forum to find the solution but I couldn't find any match!
What's the issue?
I'm trying to convert this column into 'Date' column to easily calculate QoQ, YoY and 4Qo4Q, both, for the company and market share via time intelligence. However, Power Query does not read this date type and I've got only year and a quarter as the date indicator. Any idea how to do it? It seems easy but after hours on figuring it out, I fail miserably.
Solved! Go to Solution.
you can create a column to transfer quarter to date
date =
VAR q=right('Table (2)'[quarter],2)
return SWITCH(TRUE(),q="Q1",date(left('Table (2)'[quarter],4),1,1),q="Q2",date(left('Table (2)'[quarter],4),4,1),q="Q3",date(left('Table (2)'[quarter],4),7,1),date(left('Table (2)'[quarter],4),10,1))
what's more, if you want to use time intelligence, you need to use calendar function to create a calendar table.
Proud to be a Super User!
Hi @ryan_mayu ,
Thanks for your prompt answer and a solution to my query! I've tried it as:
Are you creating a measure? pls try to create a column.
Proud to be a Super User!
If you only have 4 Q, then you don't need to set up the Q4 indicator. The rest value except Q1,Q2,Q3, all will be considered as Q4.
I didn't see your quarter column. pls try to change the quarter to the real name of your quarter column.
Proud to be a Super User!
you are welcome
Proud to be a Super User!
you can create a column to transfer quarter to date
date =
VAR q=right('Table (2)'[quarter],2)
return SWITCH(TRUE(),q="Q1",date(left('Table (2)'[quarter],4),1,1),q="Q2",date(left('Table (2)'[quarter],4),4,1),q="Q3",date(left('Table (2)'[quarter],4),7,1),date(left('Table (2)'[quarter],4),10,1))
what's more, if you want to use time intelligence, you need to use calendar function to create a calendar table.
Proud to be a Super User!
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 |
---|---|
114 | |
100 | |
78 | |
75 | |
50 |
User | Count |
---|---|
144 | |
109 | |
108 | |
88 | |
61 |