Forum Discussion
Row value in column -power bi
- Anonymous4 years ago
Hi ABC11 ,
I'm not clear about your final expected result. Do you want to create a report in Power BI? If yes, you can refer the following documentations to get it:
Refresh data from an on-premises SQL Server database
1. Connect to SQL Server database and put your SQL query into SQL statement textbox under Advanced options tab just as below screenshot...
2. Transform the data in Power Query Editor
3. Create visualizations
4. Publish report to Power BI Service
As for how to get % and ratio, you can get them by creating measures, calculated columns, etc. Before that you may need to provide the corresponding calculation logic so that we can provide you with a suitable solution later.
Percentage= DIVIDE(SUM('Table'[HOR_LABORHRS]),SUM('Table'[ALB_LABORHRS]))Best Regards
This here is a Power BI support forum, not an Oracle SQL support forum. My provided code is M, not SQL.
Since you can run custom SQL queries it would be much easier to do your required transforms directly in SQL.
Hello Ibendlin,
Yes, I understand this forum is for power bi support.
Sorry for misread Advanced editor vs Advanced query.
When I open advanced editor my SQL query is there. Still Can I do copy and past.?
Thanks,
- lbendlin4 years ago
Super User
How to use this code: Create a new Blank Query. Click on "Advanced Editor". Replace the code in the window with the code provided here. Click "Done".
- ABC114 years ago
Resolver I
ok. Thanks
- Anonymous4 years agoNot applicable
Hi ABC11 ,
Whether your problem has been resolved? If yes, could you please mark the helpful post as Answered? It will help the others in the community find the solution easily if they face the same problem with you. Thank you.
Otherwise, please provide the requried info in my previous post. We will provide you a suitable solution later.
Best Regards