This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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,
Solved! Go to 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.
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.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |