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

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

Reply
roncruiser
Post Patron
Post Patron

Dynamic Delta Columns Based on Pivot Table configuration

From any two different filenames (there could be more than two files but it's always the delta between just two files), I've been trying to create a measure to dynamically add columns showing the difference between the two common fields between the two different files.  

 

So, no matter how I configure the pivot table the value of the measure displays along with the delta values for each common field between the two filenames.

 

I've been trying my hands at this... I can only get the difference if the columns for each filename are side by side using the Difference From.  BUT only a single delta column can be shown, and some other unwanted empty column shows up.

 

Sample data file is stored here: https://drive.google.com/file/d/1ypOxxB339u1neJW-84nltEUt8o9noN5U/view?usp=sharing

 

Here is what I am trying to achieve:

  • Blue Columns are the columns I can create based on the a simple Pivot table. The values are based on a DAX measure.
  • Orange are the deltas columns that I would like or expect.

1Screenshot 2021-02-19 131352.jpg

2Screenshot 2021-02-19 131628.jpg

 

Hope to get some feedback.

Thank You.

3 REPLIES 3
Anonymous
Not applicable

Hi @roncruiser ,

I created  a sample pbix file() for you, please check whether that is what you want.

Dynamic Delta Columns Based on Pivot Table configuration.JPG

If the above one is not working, please provide the measure formula which you apply in Values field and your expected result with example and screenshots. Thank you.

Best Regards

Hi @Anonymous 

 

I am not able to utilize SELECTEDVALUE in DAX Excel.  The deltas will need to be utilized for both PowerBI and Excel.  Mainly for Excel.  I will utilize the Delta columns in DAX for Excel only.  I read that SELECTEDVALUE is not available or utilized for Excel.

 

 

 

roncruiser
Post Patron
Post Patron

As it stands right now, each of the Expected delta columns are created manually.  Which after many reports becomes rather tiresome.  Not only that, we do not look at the data the same way.   We are always pivoting through the data and digesting the data in different ways.  Having a dynamic delta column or columns will help time efficiency as well.

 

Thanks again.

4Screenshot 2021-02-19 143814.jpg

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.