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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

How to split each of the grouping data into charts using Dax without creating new tables

Hi,

 

 

Just let the following pics describe the question. Here's how the dataset looks like.

 

ItemBoroughStoreAmount
0001manhattanstore126
0001manhattanstore222
0001brooklynstore323
0001brooklynstore427
0001bronxstore513
0001bronxstore67
0001queensstore721
0001queensstore816
0001staten islandstore95
0001staten islandstore102
0002manhattanstore145
0002manhattanstore257
0002brooklynstore336
0002brooklynstore433
0002bronxstore511
0002bronxstore614
0002queensstore725
0002queensstore831
0002staten islandstore98
0002staten islandstore102

 

 

 

And I tried to create the charts below so that I can casually allocate the position of each bar chart (based on the Borough) in the dashboard as I want.  (The chart below is my expected result.)

 

jmywang_1-1626686322817.png

 

However, the way I tried is to split the whole dataset into several tables to implement it.  Like this.

 

jmywang_2-1626686566691.png

 

So, my question is that is there a way which I can only import the dataset into Power BI with one table and use Dax function to create new columns/measurements for creating the dashboard above?  Thanks

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Create a bar chart and filter only that visual on Manhattan.  Create a copy of it and filter it only on Brooklyn.  You may also want to explore "Small multiples".  


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Create a bar chart and filter only that visual on Manhattan.  Create a copy of it and filter it only on Brooklyn.  You may also want to explore "Small multiples".  


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
FarhanAhmed
Community Champion
Community Champion

You can use Append Queries to combine all of your data.

 

You may also want to include source table name in Append queries so that data can be differentiate in segmentation.

 

https://www.poweredsolutions.co/2019/04/09/combine-or-append-data-in-power-bi-power-query-main-conce...

 

https://radacad.com/append-vs-merge-in-power-bi-and-power-query

 

https://community.powerbi.com/t5/Desktop/Append-Queries-Add-Source-Table-Column/td-p/1050391

 

 







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




Anonymous
Not applicable

Hi, @FarhanAhmed 

 

Thanks for ur reply, but I dont want to append the table actually.  That's to say, originally I have one main table, which is below, and trying to make several bar charts based on the column, Borough.  But, I dont know how to implement it without splitting the main table into several ones.

 

jmywang_0-1626746473550.png

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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