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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Help with parameter

Hello,

I have a report calculating how many hours an employee works.  It has a formula that like:

SUM(Regular Hours) + SUM(Extra Hours) - Lunch Deduction.

 

I need to find out from the user what the lunch deduction is, so I"ve created a parameter with values .50, 1.0, 1.5, etc.  But now I don't know how to use this parameter on the report.  How do I display it, and how do I grab the value and add to my formula?

 

Thanks.

1 ACCEPTED SOLUTION
calerof
Impactful Individual
Impactful Individual

@Anonymous 

With this code:

WTF = 
SUMX(WTF, [Working Hours Total] - 'Lunch Hours'[Lunch Hours Value])

See here:

Half hour lunchHalf hour lunchOne hour lunchOne hour lunch

Works for me. Maybe you could share sample data and your pbix file.

F

 

View solution in original post

10 REPLIES 10

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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