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.
Hello,
Is it possible to use GROUPBY with some sort of conditions on the columns? Something along the lines of
I think you'd need to use ADDCOLUMNS ... SUMMARIZE, like
Summary Table =
ADDCOLUMNS (
SUMMARIZE ( 'Employee Detail', 'Employee Detail'[Cost Ctr] ),
"Count of Primary",
CALCULATE (
COUNTROWS ( 'Employee Detail' ),
'Employee Detail'[Employee Category] = "Primary Department"
),
"Count of Residual",
CALCULATE (
COUNTROWS ( 'Employee Detail' ),
'Employee Detail'[Employee Category] = "Residual Employees"
)
)
@Anonymous , I think you can do some calculations using Earlier
Earlier: https://youtu.be/CVW6YwvHHi8
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
12 | |
11 | |
7 | |
6 |