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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi community,
I am struggling with something that is probably pretty simple, I just cant make it work. My data looks like below in a matrix layout:
I want to show only the invoices that have more than one servicecode against them. So, the red crossed ones shouldn't appear in the matrix.
I tried grouping in a dax formula, but doesnt work. My sample pbi file is attached:
https://1drv.ms/u/s!Ag919_pO_UKrgQG4x8WBL51QJYz9?e=erDEu4
Many thanks in advance,
Meena
Solved! Go to Solution.
Hi @Anonymous
Create a measure and add it to the visual level filter
Measure =
CALCULATE (
DISTINCTCOUNT ( 'Table'[Service code] ),
FILTER (
ALLSELECTED ( 'Table' ),
'Table'[Servicedate]
= MAX ( 'Table'[Servicedate] )
&& 'Table'[GP Code]
= MAX ( 'Table'[GP Code] )
&& 'Table'[invoiceid]
= MAX ( 'Table'[invoiceid] )
)
)
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check solution at
https://www.dropbox.com/s/rl1ks43ydzirtao/Test_invoices.pbix?dl=0
New amount = CALCULATE(SUM('Table'[Amount]),VALUES('Table'[Servicedate]),FILTER('Table',[Measure]>1))
Measure = CALCULATE(DISTINCTCOUNT('Table'[Service code]),ALLEXCEPT('Table','Table'[GP Code],'Table'[Servicedate]))
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Proud to be a Datanaut Connect on Linkedin
Check solution at
https://www.dropbox.com/s/rl1ks43ydzirtao/Test_invoices.pbix?dl=0
New amount = CALCULATE(SUM('Table'[Amount]),VALUES('Table'[Servicedate]),FILTER('Table',[Measure]>1))
Measure = CALCULATE(DISTINCTCOUNT('Table'[Service code]),ALLEXCEPT('Table','Table'[GP Code],'Table'[Servicedate]))
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Proud to be a Datanaut Connect on Linkedin
Hi @Anonymous
Create a measure and add it to the visual level filter
Measure =
CALCULATE (
DISTINCTCOUNT ( 'Table'[Service code] ),
FILTER (
ALLSELECTED ( 'Table' ),
'Table'[Servicedate]
= MAX ( 'Table'[Servicedate] )
&& 'Table'[GP Code]
= MAX ( 'Table'[GP Code] )
&& 'Table'[invoiceid]
= MAX ( 'Table'[invoiceid] )
)
)
Best Regards
Maggie
Community Support Team _ Maggie Li
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 September 2025 Power BI update to learn about new features.