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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

Reply
akhaliq7
Post Prodigy
Post Prodigy

Using aggregations in sql query or in power bi

If we use aggregations in our sql query side by side with non aggregated data for example the following:

idsalescategorytotal_counttvs sold by category
11000tvs450%
21100tvs450%
3700mobile phones450%
4600mobile phones450%

 

If I now bring this into power bi and I filter out id # 2 will I still be left with 50% tvs sold by company,

I am getting the data from a database using a native sql query.

 

What is the best practice in bringing in data into power b should the data be detailed and not summarized and to leave the summarization for power bi using measures. 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@akhaliq7 , You should bring a detailed table. and try to have measures.

 

In some case, we bring in both detailed and summarized data to improve performance. But that will be case to case basis 

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@akhaliq7 , You should bring a detailed table. and try to have measures.

 

In some case, we bring in both detailed and summarized data to improve performance. But that will be case to case basis 

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.