Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

Import measure definition from Power Bi Model

Hi,

 

I am fairly new to the world of SSRS so this may be a stupid question...

 

When I create a dataset from a Power BI data source I can import both my columns and my measures. For instance consider the following:

 

The [Group], [ID], [Forecast] and [Actual] are columns.

The [Variance] and [Variance %] are dax measures.

 

GroupIDForecastActualVarianceVariance %
A1105-5-50%
A210033-67-67%
B32530520%

 

When I import the measure is being calculated for each row, effectively becoming a calculated column as apposed to a measure definition.

 

Therefore when I try and create a pivot from this data it is aggregating (in the case below summing) my measures. This is fine for most but not for [Variance %]. What I want is my measures to calculate as per the current evaluation context like it would in Power Bi. Is this possible? I see I can create a Calculated Field the get my desired result but I have 100+ measures. Do I have to re-create them or is there some way to just import the measure definition?

 

GroupIDSum of ForecastSum of ActualSum of VarianceSum of Variance %
A1105-5-50%
 210033-67-67%
A Total 11038-72-117% (wrong should be -65%)
B32530520%
B Total 2530520%
Grand Total 13568-67-97% (wrong should be -50%)

 

Thanks in advance!

Ben

No Replies