Forum Discussion
Recreating a SSRS report in Power BI
I have a SSRS report that I am trying to recreate in Power BI. The SSRS report gets the dataset via a SQL query which I am able to get the data into Power BI via the same query. But I also have a hard coded VBA script in the SSRS report to add a multi-colored layer to the existing dataset so the visualization includes all the elements for the report. I know Power BI doesn't have any support for a VBA script and I need to convert the existing VBA script to a DAX or a M query. Can someone let me know if there is a way to do this. I need to convert the existing VBA script to a query thst Power BI supports.
Thanks
Sridhar
4 Replies
- Greg_Deckler
Community Champion
I would start by posting the VBA script here or explain what it is doing. I am not aware of an automated "VBA->DAX" converter. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
- v-yulgu-msft
Microsoft Employee
Hi Anonymous,
Per my research, there is no direct way to convert VBA script to DAX or Power Query. Also, comparing with VBA script in SSRS, DAX/M query works in different way in desktop.
In your scenario, I would suggest you post sample data and desired result so that we can test to see if it is achievable in Power BI report.
Regards,
Yuliana Gu
- AnonymousNot applicable
v-yulgu-msftGreg_Deckler I uploaded a sample file and the VBA script to the link below.
https://1drv.ms/f/s!AkUUe-6V4o1UhAzWoPA031rDVW04
The desired output is something like this
with the color code with the VBA script like below.
I could only plot the data in power BI with a Gantt chart and the output is like below and need some code to formulate the multi-colored VBA script
Thanks
Sridhar
- v-yulgu-msft
Microsoft Employee
Hi Anonymous,
Per my knowledge, I'm afraid this is not achieveable in Power BI now.
Regards,
Yuliana Gu