Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 216485

How to refer a parameter in the SQL query and decode to produce static values

$
0
0

I have a query which looks likes this

select quarter, some values from table

Result shows quarter as 0,1,2,3,4,5,6 - basically 13 financial quarter and its values

 

I don't know the starting quarter so I am using a parameter which user will enter. When the template is opened user enter 2Q and year as 2016. From there on I want to decode the "quarter" column as 0 to 2Q2016, 1 to 3Q2016, 2 to 4Q2016, 3 to 1Q2017

 

how do I do it?

couldn't find any material on how to refer the entered parameter value in my query

using Power BI desktop to create the report


Viewing all articles
Browse latest Browse all 216485

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>