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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
GuestUser
Helper V
Helper V

DAX Query

Hi,

 

We have Power BI Report Server (May 2019) edition

 

Power BI is connected with datasource SSAS (COnnect Live Option) - we understand that edit queries (Power query) gets disabled -- So group by option cant be used

 

Can u please help me out to write DAX measures to achieve the following (The tables are already joined in SSAS)


select
B.type,
C.category,
sum(sales_amount)

from
fact A,
storedim B,
categorydim C

where A.store_wid = B.row_wid
and A.category_wid = C.row_wid

group by

B.type,
C.category,

1 ACCEPTED SOLUTION


@GuestUser wrote:

 

But the sales amount is showing incorrect - It is showing same values for all

it is not doing group by 

 


That typically indicates that there is not an active one to many relationship between the store and sales and category and sales.

View solution in original post

3 REPLIES 3
d_gosbell
Super User
Super User

You should not need to do anything in Power Query for this. If the tables are already joined just dragging the type, category and sales amount onto a table visual should give you the same output as that SQL query.

Thanks for replying!!

 

But it is not working as expected!!

We have created Sum(Sales_Amount) measure

and dragged columns store_type , category and sum(sales_amount) on table visual

 

But the sales amount is showing incorrect - It is showing same values for all

it is not doing group by 

 

Any suggestions pls

 

 


@GuestUser wrote:

 

But the sales amount is showing incorrect - It is showing same values for all

it is not doing group by 

 


That typically indicates that there is not an active one to many relationship between the store and sales and category and sales.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.