Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
I'm working on a model to get a workshop productivity report. Let's see if you can help me create a measure:
I have a table d_HorasCalendario with the following columns: Date, Workshop, Calendar Hours, OperatorID.
I would like to get the monthly hours per workshop, but when I do it with SUM (Calendar Hours = SUM(d_HorasCalendario[Calendar Hours])), I add up the hours of all the operators in the workshop.
I want to take the hours per workshop without taking into account the operators, i.e. removing duplicates in the Workshop column. How could I do that with a measure? Attached is an image of the table.
Solved! Go to Solution.
Hi @Syndicate_Admin ,
Please try to create a measure with below dax formula:
Measure =
VAR _date =
SELECTEDVALUE ( 'Table'[Date] )
VAR _year =
YEAR ( _date )
VAR _month =
MONTH ( _date )
VAR _ws =
SELECTEDVALUE ( 'Table'[Workshop] )
VAR tmp =
FILTER (
ALL ( 'Table' ),
[Workshop] = _ws
&& YEAR ( [Date] ) = _year
&& MONTH ( [Date] ) = _month
)
RETURN
SUMX ( tmp, [Calendar Hour] )
Add a table visual with table fields and measure:
Please refer the attached .pbix file.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Syndicate_Admin ,
Please try to create a measure with below dax formula:
Measure =
VAR _date =
SELECTEDVALUE ( 'Table'[Date] )
VAR _year =
YEAR ( _date )
VAR _month =
MONTH ( _date )
VAR _ws =
SELECTEDVALUE ( 'Table'[Workshop] )
VAR tmp =
FILTER (
ALL ( 'Table' ),
[Workshop] = _ws
&& YEAR ( [Date] ) = _year
&& MONTH ( [Date] ) = _month
)
RETURN
SUMX ( tmp, [Calendar Hour] )
Add a table visual with table fields and measure:
Please refer the attached .pbix file.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
80 | |
40 | |
31 | |
27 | |
27 |