Reporting text

airranz

New Member
Joined
Dec 18, 2013
Messages
6
I want to create reports that combine numbers a text. I can not do it with Power Pivot because it only work with numeric fields in the value.
Something like

[TABLE="width: 500"]
<tbody>[TR]
[TD]Country[/TD]
[TD]2010[/TD]
[TD][/TD]
[TD]2011[/TD]
[TD][/TD]
[TD]2012[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]sales[/TD]
[TD]comment[/TD]
[TD]sales[/TD]
[TD]comment[/TD]
[TD]sales[/TD]
[TD]comment[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD]1000[/TD]
[TD]Good[/TD]
[TD]2000[/TD]
[TD]Better[/TD]
[TD]1500[/TD]
[TD]OK[/TD]
[/TR]
[TR]
[TD]Germany[/TD]
[TD]200[/TD]
[TD]Bad[/TD]
[TD]500[/TD]
[TD]Good[/TD]
[TD]1000[/TD]
[TD]great[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


Is there any way to force Power Pivot to work with text fields?
Which alternative tool could I use similar to power pivot?
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
I dont have power pivot installed, but I think you should reorganize your raw data tables so that it is "rational" - thats a database term. If you do this, a regular pivot table will do the job.

Excel 2010
ABCDE
1CtryYearSalesComment
2USA20101000good
3USA20112000Better
4USA20121500OK
5Ger2010200Bad
6Ger2011500good
7Ger20121000Great
8
9
10CtryUSA
11
12Sum of SalesColumn Labels
13Row Labels201020112012Grand Total
14Better20002000
15good10001000
16OK15001500
17Grand Total1000200015004500
Sheet1
 
Upvote 0
I have the data in a relational form, just as you showed. What I want is not a pivot table, to manipulate numbers, but rather a report that shows numbers and text associated to that numbers as I displayed in my example.
With a normal Pivot table I guess is the same problem that with Power Pivot, you can only put Numeric fields, in the Values.

The example is a simplification, my real problems is much more complex, and I like the way to build my reports with Power Pivot, because that give me the interactivity that I need with the slicers, but I would like to complement the numeric values with some text fields that doesn't require agregation. Probably with Power Pivot i can not achieve it, but I guess ther should be some tool with a similar way to build reports
 
Upvote 0
USe an array formula to read your table then. Press ctrl-shft-enter to make it work. Here you go:


Excel 2010
ABCDEFG
1CtryYearSalesComment
2USA20101000good
3USA20112000Better
4USA20121500OK
5Ger2010200Bad
6Ger2011500good
7Ger20121000Great
8
9
10Country201020112012
11SalesCommentSalesCommentSalesComment
12USA1000good2000Better1500OK
13Ger200Bad500good1000Great
Sheet1
Cell Formulas
RangeFormula
B12{=INDEX($C$2:$D$7,MATCH(1,($A$2:$A$7=$A12)*($B$2:$B$7=B$10),0),1)}
B13{=INDEX($C$2:$D$7,MATCH(1,($A$2:$A$7=$A13)*($B$2:$B$7=B$10),0),1)}
C12{=INDEX($C$2:$D$7,MATCH(1,($A$2:$A$7=$A12)*($B$2:$B$7=B$10),0),2)}
C13{=INDEX($C$2:$D$7,MATCH(1,($A$2:$A$7=$A13)*($B$2:$B$7=B$10),0),2)}
D12{=INDEX($C$2:$D$7,MATCH(1,($A$2:$A$7=$A12)*($B$2:$B$7=D$10),0),1)}
D13{=INDEX($C$2:$D$7,MATCH(1,($A$2:$A$7=$A13)*($B$2:$B$7=D$10),0),1)}
E12{=INDEX($C$2:$D$7,MATCH(1,($A$2:$A$7=$A12)*($B$2:$B$7=D$10),0),2)}
E13{=INDEX($C$2:$D$7,MATCH(1,($A$2:$A$7=$A13)*($B$2:$B$7=D$10),0),2)}
F12{=INDEX($C$2:$D$7,MATCH(1,($A$2:$A$7=$A12)*($B$2:$B$7=F$10),0),1)}
F13{=INDEX($C$2:$D$7,MATCH(1,($A$2:$A$7=$A13)*($B$2:$B$7=F$10),0),1)}
G12{=INDEX($C$2:$D$7,MATCH(1,($A$2:$A$7=$A12)*($B$2:$B$7=F$10),0),2)}
G13{=INDEX($C$2:$D$7,MATCH(1,($A$2:$A$7=$A13)*($B$2:$B$7=F$10),0),2)}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
PS: THe values in cell B12 and C12 can be copied down and to the right without editing. So you really only need to enter two formulas.
 
Upvote 0

Forum statistics

Threads
1,223,970
Messages
6,175,726
Members
452,667
Latest member
vanessavalentino83

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top