Forum Discussion
Not able to save CTE as Table or View
- 2 years ago
I think this is now a Power BI issue rather than a Synapse issue. You will be better served posting this logic issue in the Power BI forum
Hello lovishsood1
When you say "I want to save this SCRIPT as TABLE " , I am asuming that the intend is just to have these rows on some report , please correct me if I am wrong . I think we can use the view route for this for now.
Since you have a CTE which you are running and i suggest you can create a view using the the CTE ( AndyDDC was also pointing that out ) and the use that view to get the data in the report . I have some dummy data with which i tried and it worked .
Himanshu
I think this worked but problem is
I'm still not able to resolve what I actually I want to achieve.
This should be my end output:
But the Problem is My data is coming out of 100% and Above Output is showing DATA according to Total Hours for that month.
I hope I'm able to describe my problem statement.
Current Table :
Output Table :
I want to achieve like this so that I can create the graph as shown above.
You can ignore the Month Column of Output table as I'm okay with using Month Name & Month Number column as it is.
I hope my problem is clear.
Script I'm using I'm already mentioned above.
- AndyDDC2 years ago
Most Valuable Professional
I think this is now a Power BI issue rather than a Synapse issue. You will be better served posting this logic issue in the Power BI forum