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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
MegaOctane1
Helper I
Helper I

SAP Power BI run same query with different years as parameter

How can i run the same query as "paginated" with different parameters? If i run it for too many years, it returns an error from SAP BW about memory issues. 

 

Below is a partial code from the query. I provide a parameter as "0CALYEAR" 2023

How can i run this query with year as parameter and then get the data for multiple year in the same query?

 

let
    Source = SapBusinessWarehouse.Cubes("HIDDEN", "HIDDEN", "HIDDEN", "HIDDEN", [Implementation="2.0", LanguageCode="EN"]),
    GFIARM03 = Source{[Name="GFIARM03"]}[Data],
    #"GFIARM03/GFIAR_M03_Q0003" = GFIARM03{[Id="GFIARM03/GFIAR_M03_Q0003"]}[Data],
    #"Added Items" = Cube.Transform(#"GFIARM03/GFIAR_M03_Q0003",
        {
           {Cube.ApplyParameter, "[!V000001]", {{"[0CALYEAR].[2023]"}}

 

 

I have looked at  this blog, but he doesn't specify how he managed to do it, and the comments also show that others are struggling with the same.

https://businessintelligist.com/2018/03/24/how-to-overcome-sap-bw-memory-overflow-issue/

0 REPLIES 0

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors