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.
Good afternoon!
I am trying to filter my query to only retrieve rows from SAP BW with a measure value greater than 0. For example, if the query originally pulls:
I would only want the query to retrieve:
The dataset consists of over 2 million rows therefore the query must limit the data retrieved as opposed to filtering after retrieval. I have copied below the current query from Advanced Editor and bold and underlined the measure that I would want to apply the greater than 0 parameter. I would greatly appreciate support on this!
let
Source = SapBusinessWarehouse.Cubes("Web URL", "___", "___", "__", [Implementation="2.0"]),
SourceA = Source{[Name="SourceA"]}[Data],
#"SourceA/SourceA_Transaction" = SourceA{[Id="SourceA/SourceA_Transaction"]}[Data],
#"Added Items" = Cube.Transform(#"SourceA/SourceA_Transaction",
{
{Cube.ApplyParameter, "[YGTHH12]", {{"[0Column1].[1777]", "[0Column1].[1555]"}}},
{Cube.AddMeasureColumn, "Measure1", "[Measures].[222222222]"},
{Cube.AddMeasureColumn, "Measure2", "[Measures].[333333333]"},
{Cube.AddAndExpandDimensionColumn, "[0Column1]", {"[0Column1].[LEVEL01]"}, {"Column1._____ Level 01"}},
{Cube.AddAndExpandDimensionColumn, "[0Column2]", {"[0Column1].[LEVEL01]"}, {"Column2.___ Level 01"}}
}),
in
_____
Thanks,
Tom
Hello ,
I have some issue. If anyone has a good idea on how to do this , I would be more than happy
Hi @Anonymous ,
I think you can only filter the SAP BW query if you insert a corresponding MDX statement in the Advanced options.
https://docs.microsoft.com/en-us/power-bi/desktop-sap-bw-connector
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
108 | |
105 | |
87 | |
74 | |
66 |
User | Count |
---|---|
124 | |
113 | |
96 | |
80 | |
72 |