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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
pzinsli
Regular Visitor

New Measure with a cross filter

I am trying to build a new calculation, dividing a category Hours by Hours that are categorized by a separate table under Billable Status> Billable.  To start this process, I tried creating a new measure, basically to create the numerator of billable hours.  In the end I want to have billable hours/total hours as a percentage.  

 

My DAX formula for the numerator would not allow me to use the filter billable status> is billable, only 'billable status' so my pitiful attempt ended with this: 

 

Measure = CALCULATE(SUM('TIME TRACKING VALUES'[Hours]),FILTER('Transaction Line Attributes', 'Transaction Line Attributes'[Billable Status]= 'Transaction Line Attributes'[Billable Status], Billable)

 

 

I understand it is riddles with mistakes I need help with ideas on how to build this.  

1 ACCEPTED SOLUTION

 Is this what you need? the column 'Hours' is in the table TIME TRACKING VALUES and the other table is 'transaction Line Attributes' which includes the filter 'Billable Status' where the thre options are 'billable,' unbillable,' and 'billed.'  i would like to have the hours categorized as 'billable' divided by all hours: billable, unbillable, and billed.  I cannot share the actual columns with you unfortunately because the data is private. I hope this is enough.  connection page. set up by QQube.connection page. set up by QQube.Billable Status TableBillable Status TableTime Tracking Values tableTime Tracking Values table capture of new measure data.PNG

 

Thank You

View solution in original post

4 REPLIES 4
pzinsli
Regular Visitor

Measure = CALCULATE(SUM(('TIME TRACKING VALUES'[LinkToTxnID], FILTER('Transaction Line Attributes'[Billable Status])))/SUM('TIME TRACKING VALUES'[Hours])

 

 

this is my most recent attempt. It says the syntax for 'Measure' is incorrect

Greg_Deckler
Community Champion
Community Champion

Sample data please. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

 Is this what you need? the column 'Hours' is in the table TIME TRACKING VALUES and the other table is 'transaction Line Attributes' which includes the filter 'Billable Status' where the thre options are 'billable,' unbillable,' and 'billed.'  i would like to have the hours categorized as 'billable' divided by all hours: billable, unbillable, and billed.  I cannot share the actual columns with you unfortunately because the data is private. I hope this is enough.  connection page. set up by QQube.connection page. set up by QQube.Billable Status TableBillable Status TableTime Tracking Values tableTime Tracking Values table capture of new measure data.PNG

 

Thank You

The connection between Hours and their billing status seems to be based on that linktotxnID which was created by the QQube Quickbooks connector.  

Helpful resources

Announcements
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