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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
mohanrajs87
New Member

Group by Location and Product and find the sum and assign summed value to a report as Static value

I am using SSAS tabular and Power BI for generating reports in our organization. I have to group by Location and product and find a sum value using a measure. After that, I need to assign that measure value as such to another report which has the same location and product but not grouped but split based on dates (Group by sum value should not change in both the reports).

I had tried and was able to achieve the group and sum in the first report. But was not able to retain the same value when we put it without grouping. 

I don know whether it's possible to achieve in this method or I need to change the way. Can anyone guide me, please?

 

Attached the Measure I had written to the group.

first Measure for Daily Average:

PERF_Daily = CALCULATE(AVERAGE('Order Delivery Invoice'[Converted Market Price_Close])-[Calc_Unit_Cost_USD],FILTER('Order Delivery Invoice','Order Delivery Invoice'[Agreement Type]="Spot"),filter('Order Delivery Invoice','Order Delivery Invoice'[System Instrument Id]>0),filter('Order Delivery Invoice','Order Delivery Invoice'[Converted Market Price_Close]>0))
 Second Measure for Monthly Average based on Daily value: 
PERF Last 1 Month = CALCULATE(averagex('Order Delivery Invoice',[PERF_Daily]),FILTER('Order Delivery Invoice','Order Delivery Invoice'[Order Date]>=(TODAY()-(365/12)*1)))

 

 

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

 
Which connection mode do you use to connect to SSAS?
If you are using import join mode, you can consider creating a new table to establish a one to many relationship between the location field and other tables.
If you use the connect live connection mode, you can consider adding the ALLEXCEPT function to measure
 
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi @mohanrajs87 ,


Is this problem sloved?
If not, please let me know.

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

V-lianl-msft
Community Support
Community Support

 
Which connection mode do you use to connect to SSAS?
If you are using import join mode, you can consider creating a new table to establish a one to many relationship between the location field and other tables.
If you use the connect live connection mode, you can consider adding the ALLEXCEPT function to measure
 
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Power BI Header Change

Power BI Header Update

Read about the exciting updates for the Power BI forum.

Top Solution Authors
Top Kudoed Authors