Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
The model has several queries where there are three that I need to match. First, a table of people containing ID+(yearmonth) as a unique ID but it is not connected to calendar as the table people has no date column; Second, a table containing salary by people (the same key that People's table) connected to People and Calendar; the third, Attendance connected by key to People and by date to Calendar. I need to get the sumproduct between salary and certain states of attendance by people, to get the ammount paid, and then, do the same but get the same attendance's states for the previous month.
To be more exact, these are the measures:
Its not a good idea to add columns using SUMMARIZE, see this article from SQLBI.
Instead, use ADDCOLUMNS, e.g.
BI_HC =
SUMX (
ADDCOLUMNS (
SUMMARIZE ( Personas, Personas[Key] ),
"BIHC", [Remuneración (Sin Horas Extras) Mes Ant] * [Operativos]
),
[BIHC]
)
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
10 | |
10 | |
9 | |
6 |