Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

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 4
v-yulgu-msft
Employee
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

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

@v-yulgu-msft@Greg_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

 

image1.jpg

 

with the color code with the VBA script like below.

image2.png

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

image3.png

 

Thanks

Sridhar

Hi @Anonymous,

 

Per my knowledge, I'm afraid this is not achieveable in Power BI now.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Super User
Super User

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


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.