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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
ManchevB
Helper II
Helper II

Implementing QlikSense logic into a Power BI DAX formula

Hey, 

 

I created a utilization formula in Power BI, that gives me information on the utilization of a single engineer. What I am looking to do next is to have a view on a monthly level - for each country. 

 

The problem is that when I visualize my formula for the "UI %" together with Month in a chart, I get a crazy number: 

 

ManchevB_0-1715868201292.png

 

The formula for the UI % is: 

UI % calling country value =
DIVIDE(
    [Total Time in Hours equal or less than 14],
    [Distinct Count of Onsite_Date_WO]
) / MAXX('Hours3', 'Hours3'[Standard Hours Per Country])  
 
* the logic is that I am dividing the Total Time in Hours by the Onsite Dates by the Standard Working Hours per Country 
 
The logic works fine and shows the correct result when I want to visualize it for an engineer only, but when I want to compare it against his peers or on the country he is from, I get a number that doesn't match. 
 
I believe this might have something to do with aggregation or weighted average but I am still learning and cannot be sure. 
 
Any help would be greatly appreciated here!
 
Happy to share more details if needed,
Boris

 

1 ACCEPTED SOLUTION
ManchevB
Helper II
Helper II

I was able to adjust the formula myself

View solution in original post

2 REPLIES 2
ManchevB
Helper II
Helper II

I was able to adjust the formula myself

Anonymous
Not applicable

Hi @ManchevB 

 

This is usually due to that the filter context has changed when filtering. As the measure consists of three parts: [Total Time in Hours equal or less than 14], [Distinct Count of Onsite_Date_WO] and MAXX('Hours3', 'Hours3'[Standard Hours Per Country]), you can add these parts to card visuals individually to check which part doesn't return the correct result. Then you can try to correct each part one by one to get the final result. Separating and testing each part can make it easier to verify the DAX expression.

 

If possible, can you provide some dummy data in table format and share the desired correct outcome? We can then use the dummy data to create a demo and test any possible DAX formula. 

 

Best Regards,
Jing

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors