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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
swaroopkumarmg
Helper II
Helper II

Combine values from different table visual to a single table visual

Hello there. 

 

Problem: i have a single data set - data is in a single excel sheet, but I have to create different pivots from the same data set. 

once I have the pivots ready I need to take the values from those pivots and put them in a combined table. 

 

Example: 

Table1
DepartmentMale
A3
C6
E4

 

Table 2
DepartmentFemale
B5
D4
E6

 

Combined Table
DepartmentMaleFemale
A3 
B 5
C6 
D 4
E46

 

here, Table 1 and Table 2 are different pivots with different type of filtering and I have to copy past the values into a separate table to make it presentable. i have to do this every time this report is pulled. 

 

any way this can be setup in power BI without creating new tables, as I have more than 6 pivots that will be combined this way and I don't want to create new tables. rather I would want to create table/ matrix visual and then pull data from them, similar to the way it's done on excel. 

 

1 ACCEPTED SOLUTION

Hi  @swaroopkumarmg ,

There isn't an exact equivalent function in Power BI.

Refer:Solved: Getpivotdata equivalent - Microsoft Power BI Community

 

Best Regards

Lucien

View solution in original post

5 REPLIES 5
v-luwang-msft
Community Support
Community Support

Hi @swaroopkumarmg ,

Has your problem been solved, if so, please consider Accept a correct reply as the solution or share your own solution to help others find it.

Best Regards
Lucien

v-luwang-msft
Community Support
Community Support

Hi @swaroopkumarmg ,

Try to create a measure like below:

d = IF(MAX(TableA[Department])<>BLANK(),MAX(TableA[Department]),MAX(TableB[Department]))

Final output:(without creating a new table)

vluwangmsft_0-1634889105526.png

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


Best Regards

Lucien

Hi Lucien,

 

thanks for giving this a try.

 

What I'm actually looking at is this.

 

swaroopkumarmg_0-1634892600072.png

here Male & Female tables are matrix tables and the other one is a normal table visual. 

in the actual report, I'm working on, I have 10+ pivots in my excel file, I do not want to create 10+ tables in Power BI. Rather retrieve data from only one data table (sheet1)

 

is there a way for the Normal table to reference columns from both the Matrix tables? like how GETPIVOTDATA can be used in excel?  the reason is each of those pivots has a different kind of filtering.

Hi  @swaroopkumarmg ,

There isn't an exact equivalent function in Power BI.

Refer:Solved: Getpivotdata equivalent - Microsoft Power BI Community

 

Best Regards

Lucien

smpa01
Super User
Super User

@swaroopkumarmg  once you have all the tables, you need to build a table with only Axis and then you can manipulate existsing measures to give tyou what yoyu need. Example attached

 

smpa01_0-1634659067506.png

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.