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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare 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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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

Top Solution Authors
Top Kudoed Authors