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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
sixathur
Frequent Visitor

Multiple DAX measure issues

Hi,

I am trying to create a Bonus calculator for my report,

Measure 1: Total Visits (I counted all the rows in the report to get the total visits)

IMG_7722.png

 

 

 

Measure 2: PTO Hours ( I sum all the PTO hours)

IMG_7721.png

Measure 3: FTE - I need to calculate the FTE per employee, 40 hours is full-time hours, from there I need to calculate the Target Visits

IMG_7723.png

Measure 3: Target Visits - 58 is the default visit for a full time employee (1 FTE), this measure should calculate the visit targer based on their FTE

 IMG_7720.png

Measure 4: Bonus - if the Total visits is higher than the visit target, get the difference then multiply by 15.

IMG_7724.png

Issue: The main issue I am having with all these formula is when I calculate the Estimated Bonus, its giving me the total visits multiply by 15, if I use the slicer (date) it gives me the correct data but without any filters its totalling all the visits. 

 

What am I doing wrong? I really need help.

4 REPLIES 4
v-jingzhan-msft
Community Support
Community Support

Hi @sixathur 

 

I'd recommend putting these measures all in the same table visual, and then using the slicer to pick dates to see which measure might not return the correct value in some specific cases. From the current information, if the Estimated Bonus gives you the total visits multiply by 15, it means VisitTarget might return 0 at the same time. 

 

Best Regards,
Jing

some_bih
Super User
Super User

Hi @sixathur it is hard to spot issue/s without your model. CALCULATE  is used to modify filter context so please provide some sample file with data input and expected output.

It could be something like relationship, or need to adjust your measures with SELECTEDVALUE for targeted filter context.





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

Proud to be a Super User!






626C955A-D853-43A4-A7E9-ED74B7847303.jpeg

Hi, 

this is my model.

Hi @sixathur I could not see on picture your tables named in measures above, like

some_bih_0-1742197970654.png

some_bih_1-1742197985922.png

 





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

Proud to be a Super User!






Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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