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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

excel - display measure on pivot table with different fields under "column" area

hi guys,

i've calculated a measure "N mod" = DISTINCTCOUNT(Tabella_EstrazioneMateriali[Modello]) and then add that measure on values of pivot table in excel.

> Pivot table:

 

Cattura.PNG

 

What i'm trying to achieve is to display a calculated column "Fabb n." with values to be grouped by "Unità di misura" on columns and the values of the measure "N mod" not grouped under "Unità di misura" but in 1 column as you can see in the screenshot below:

 

Cattura2.PNG

 

I'm new to power pivot and i'm wondering if there is a formula for that measure that can help me. thanks in advance

ex. in short, the data of pivot table is structured as:

 

MATERIALEMODELLOFABBISOGNOUNITA' DI MISURA
ropeA10m
ropeB1m
steelA3kg
4 REPLIES 4
Greg_Deckler
Community Champion
Community Champion

Sample source data would be great. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

https://1drv.ms/x/s!AlibJbtIbDxpiMhliKl54OsEO7zhlA?e=vc8vBT 

 

The data is on sheet "Estrazione Materiali" and is retrieved from a sql istruction with dynamic parameters, then is loaded to the Power Pivot data model;

The pivot table to focus on is on sheet "pivot materiale-modelli" and the measure is called "N mod"

Anonymous
Not applicable

Hi @Anonymous ,

I just trying to open the link, but it failed with error message "can't load the excel sheet..."... Could you please upload the sample data (exclude sensitive data) and expected result to OneDrive for Business?

 

Best Regards

Rena

Anonymous
Not applicable

here's the updated link with a zipped folder so the file won't be opened on excel online because it will get an error 

https://1drv.ms/u/s!AlibJbtIbDxpiMhqs7zoK967Lkfytg?e=wiyATc 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.