cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
laxmikantpatil Frequent Visitor
Frequent Visitor

Add serial number in matrix (I am using slicers too so the serial number shouldn't get affected)

I have a simple set of data

I created a matrix visual

added slicers

now i want to add serial number.

How do i do this.

I tried using the below DAX code but it isn't helping. Please help

Row_Number = 
CALCULATE (
    COUNTROWS(Details),
    FILTER ( ALLSELECTED ( Details), Details[Project] <= MAX ( Details[Project]) )
)

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Add serial number in matrix (I am using slicers too so the serial number shouldn't get affected)

Hi @laxmikantpatil ,

 

Please update your measure as below.

 

Row_Number = 
CALCULATE (
    DISTINCTCOUNT(Details[Project]),
    FILTER ( ALLSELECTED ( Details), Details[Project] <= MAX ( Details[Project]) )
)

 

 

Community Support Team _ Frank
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

1 REPLY 1
Community Support Team
Community Support Team

Re: Add serial number in matrix (I am using slicers too so the serial number shouldn't get affected)

Hi @laxmikantpatil ,

 

Please update your measure as below.

 

Row_Number = 
CALCULATE (
    DISTINCTCOUNT(Details[Project]),
    FILTER ( ALLSELECTED ( Details), Details[Project] <= MAX ( Details[Project]) )
)

 

 

Community Support Team _ Frank
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

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Users Online
Currently online: 365 members 2,851 guests
Please welcome our newest community members: