cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SarahLamblin
New Member

Countrows and summarize

Good morning,

 

I've created a matrix table using 4 columns and one measure.

It is a matrix table to visualize article numbers based on Article Status, Article type and Article group.

The aim is to retrieve the number of articles per Article group.

 

This the measure I initially created:

Aantal artikels =
VAR aantalartikels =
COUNTROWS(
SUMMARIZE(Artikelgegevens, Artikelgegevens[Artikelstatus], Artikelgegevens[Artikelsoort],
ArtikelGroepOmschrijving[ArtikelgroepOmschrijving], Artikelomschrijving[ArtikelNr])
)

RETURN
aantalartikels

 

But that gives the following result: (The totals per Article Group are correct, but I want to leave the count of Article Nr per row. I don't want to see the number 1 on each row next to article number.)

Countrows.jpg

So the I tried the following measure:

Aantal artikels =
VAR aantalartikels =
COUNTROWS(
SUMMARIZE(Artikelgegevens, Artikelgegevens[Artikelstatus], Artikelgegevens[Artikelsoort],
ArtikelGroepOmschrijving[ArtikelgroepOmschrijving], Artikelomschrijving[ArtikelNr])
)


RETURN
IF(ISFILTERED(Artikelomschrijving[ArtikelNr]), blank(), aantalartikels)

 

But when I use this measure the Article Numbers on itself are no longer visible.

 

I do want to see the Article Numbers, but not the value of 1 next to each article number.

 

Can someone help me to obtain this result?

 

Thank you!

1 ACCEPTED SOLUTION
v-polly-msft
Community Support
Community Support

Hi @SarahLamblin ,

I have created a simple sample. Please have a try.

VAR aantalartikels =
COUNTROWS(
SUMMARIZE('Table','Table'[ArtikelSoort],'Table'[ArtikelStatus],'Table'[ArtikelgroepOmschriving],'Table'[Gemarieerd]))

RETURN
MAX('Table'[Gemarieerd])
vpollymsft_0-1643620469164.png

 

If it is possible, please provide your pbix file without privacy information and desired output.

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

 

 

View solution in original post

2 REPLIES 2
v-polly-msft
Community Support
Community Support

Hi @SarahLamblin ,

I have created a simple sample. Please have a try.

VAR aantalartikels =
COUNTROWS(
SUMMARIZE('Table','Table'[ArtikelSoort],'Table'[ArtikelStatus],'Table'[ArtikelgroepOmschriving],'Table'[Gemarieerd]))

RETURN
MAX('Table'[Gemarieerd])
vpollymsft_0-1643620469164.png

 

If it is possible, please provide your pbix file without privacy information and desired output.

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

 

 

SarahLamblin
New Member

I've also tried using if(isinscope instead of if(isfiltered, but the result is still not what I want

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors
Top Kudoed Authors