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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
vincenttys
Helper I
Helper I

Measure help

Hi all,

I have a data as below and column highlighted in yellow is a calculated column based on Entry Time Deviation and Exit time Deviation. I want to use this data and generate report similar to the following table. With Entry Time Deviation along, there are 18 different measure if i would go and create measure one at a time. Is there a better way to do this?

 

Data

Data.PNG

 

Report

Report.PNG

 

Thank you

 

Regards,

Vince

3 REPLIES 3
datawailor
Advocate II
Advocate II

May be a little challenging to explain but ideally, you do this in power query by 

  1. Reference the table to create a seperate table we'll use to set somethings up
  2. create a list of all the entry and exit time variance values (entry time variance <15, entry time variance -15 to 0, etc)
  3. Add a column that concatenates "% " to each entry
  4. Add an index to the lis
  5. Select the Index column created and unpivot on the other columns
  6. Add a column that enables you distinguish between values and %ages. Something like if left(Label,1) = "%" then "%age" else "value"
  7. Add another column that groups your values into Entry time deviation and Exit time deviation using a similar method as the previous step

Once the you have the table, you can close and join the field to the main table with the data and do the rest with DAX. Things like this are typically best done with Power query and am sure im missing a smnall step but you get the idea. if i have time i could buiold it out

 Hi @datawailor 

 

I have a go and i think i can create a separate table but not sure how to join it back to the main table with data. Can you please assist?

 

Thank you

Thanks for the recommendation. I will have a go. 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors