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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
dwhittaker1
Helper II
Helper II

Help recreating a unique table in excel

 

I would like to recreate the table in the screenshot below. I am wondering if the best way to do this would be a calculated table but I am im not sure and I am open to suggestions.

 

In the table below

sales target and sales actuals is raw data from my data set.

Difference is a calculation (Sales actuals less sales target)

Attainment is a calculation(Sales actuals/Sales target)

YTD Column is a calcaution

Total column is a calculation

 

 

dwhittaker1_0-1742732529554.png

 

 

SourceDate  Sales
ACTUALS 1/1/2025  21138
ACTUALS 1/2/2025  21097
TARGET   1/1/2025  21666
TARGET1/2/2025  24042
1 ACCEPTED SOLUTION
v-karpurapud
Community Support
Community Support

Hello @dwhittaker1 

Thank you for reaching out to the Microsoft Community Forum.

Thank you @danextian for your prompt response.

To recreate the table in Power BI, use a Disconnected Table and a SWITCH DAX measure.

  1. Create a Disconnected Table for Measure Names and create a Measure to Switch Between Values.
  2. Next, add a Matrix Visual from the Visualizations pane.

        vkarpurapud_0-1742980586076.png

 

I have attached a PBIX file for a more detailed understanding. Please review it:

 

If my response has resolved your query, please mark it as the Accepted Solution to assist others. Additionally, a 'Kudos' would be appreciated if you found my response helpful.

 

Thank You!

View solution in original post

3 REPLIES 3
v-karpurapud
Community Support
Community Support

Hello @dwhittaker1 

Thank you for reaching out to the Microsoft Community Forum.

Thank you @danextian for your prompt response.

To recreate the table in Power BI, use a Disconnected Table and a SWITCH DAX measure.

  1. Create a Disconnected Table for Measure Names and create a Measure to Switch Between Values.
  2. Next, add a Matrix Visual from the Visualizations pane.

        vkarpurapud_0-1742980586076.png

 

I have attached a PBIX file for a more detailed understanding. Please review it:

 

If my response has resolved your query, please mark it as the Accepted Solution to assist others. Additionally, a 'Kudos' would be appreciated if you found my response helpful.

 

Thank You!

dwhittaker1
Helper II
Helper II

@danextian thank you this is a good start, is there a way to add the difference measure and attainment calculation to the row of this table as shown below

dwhittaker1_0-1742737640500.png

 

danextian
Super User
Super User

Hi @dwhittaker1 

This approach requires a disconnected table along with measures that reference it. Attached is a sample PBIX file using this method.

danextian_0-1742734520207.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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