Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Dhruvin
Helper III
Helper III

How to Pass result of One Measure second table without Applying any other Filters?

I have following requirement. Please check the right side table where I have name and Dyanmic Row number generated. I have also uploaded sample file here. Please sownload from here.

Measure for the Dynamic Row Number is below.

RowNum = 
CALCULATE (
    COUNT ( Table1[Index] ),
    FILTER ( ALLSELECTED( 'Table1' ), Table1[Index] <= MAX ( Table1[Index] ) )
)

Now, I want to display the same Row number in all seperate table.

Problem: When I add my measure in every table it starts with "1" always. It doesn't resume the sequence number. 

Screenshot_4.png

 

Suppose, if user filter two names,  from the filter, at that time generated dynamic result of the measure should be displayed in the Power BI table.

Screenshot_5.png

Can anyone guide me how to achieve this requirement?

 

 

 

2 REPLIES 2
v-diye-msft
Community Support
Community Support

Hi @Dhruvin 

 

In your scenario, if you'd like to get below results, please kindly change the measure as: 

RowNum = var a = MAX(Table1[Name])
Return
IF(a in VALUES('Table'[Slicer]),CALCULATE(COUNT(Table1[Index]),FILTER(ALL(Table1),[Name] in VALUES('Table'[Slicer])&&[Index]<=MAX(Table1[Index]))))

00.PNG

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
Anonymous
Not applicable

Are you trying to create an index column and have it always show that same index number?  I recommend using PowerQuery for creating the index.  It is much simpler.

 

https://yodalearning.com/tutorials/learn-how-create-index-columns-using-power-query/

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.