Join 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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi all,
I'm after some guidance please.
In power BI I have a data table as below and trying to summarise it
as an example the data looks like this
I'm trying to populate a table which looks at the name accross primary and seconday and counts how may time it occures in the year and totals it.
Could anyone provide some guidance on how to do this please?
Thanks you.
could you confirm what the below [primary] relates to please?
[Primary]
@lja it relates to the column name is the slicer table.
I get this error message?
A table of multiple values was supplied where a single value was expected.
@lja please follow the pbix attached
Don't worry, the pbix didn't help explain it. I need someone to explain rather than send the file as this sits within a larger report.
Thanks for you time
@lja What is the exact end result desired?
HI,
This is the result i'd like:
@lja firstly you need to build a slicer table like this
Slicer =
FILTER (
DISTINCT (
UNION ( VALUES ( 'Table'[Primary] ), VALUES ( 'Table'[Secondary] ) )
),
[Primary] <> BLANK ()
)
and then you can use a measure like this
Measure =
VAR _primary =
CALCULATE (
COUNT ( 'Table'[Year] ),
TREATAS ( VALUES ( Slicer[Primary] ), 'Table'[Primary] )
)
VAR _secondary =
CALCULATE (
COUNT ( 'Table'[Year] ),
TREATAS ( VALUES ( Slicer[Primary] ), 'Table'[Secondary] )
)
RETURN
_primary + _secondary
which gives you this
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!