The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi guys!
I have a table (Production) in which there is the daily production of the company's personnel. Above a production limit, a productivity bonus is given. The logic is simple:
Solved! Go to Solution.
Try
Bonus =
VAR SummaryTable =
ADDCOLUMNS (
SUMMARIZE ( 'Production', 'Production'[Employee ID], 'Date'[Date] ),
"@value",
IF (
CALCULATE ( SUM ( 'Production'[Production] ) ) >= [ProductionTarget],
10,
BLANK ()
)
)
RETURN
SUMX ( SummaryTable, [@value] )
Try
Bonus =
VAR SummaryTable =
ADDCOLUMNS (
SUMMARIZE ( 'Production', 'Production'[Employee ID], 'Date'[Date] ),
"@value",
IF (
CALCULATE ( SUM ( 'Production'[Production] ) ) >= [ProductionTarget],
10,
BLANK ()
)
)
RETURN
SUMX ( SummaryTable, [@value] )
User | Count |
---|---|
28 | |
11 | |
8 | |
6 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |