Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
I have below data with columns ID,Number & Name. I want to count the distinct IDs for maximum Number value. I am using below DAX in KPI which works fine
calculate( distinctcount(Table[ID], Table[Number]=max(Table[Number]))
But, I want to pass the condition of measure to table visual where there is other dimension.
I have provided Number as filter. If no filter is selected table visual should be filtered for max Number. If I select any other value from Number, table visual should filter based on that selection. Please see the attached screenshot of requirement
Solved! Go to Solution.
You could create a measure like
Row is visible =
VAR MaxNumber =
    CALCULATE ( MAX ( 'Table'[Number] ), REMOVEFILTERS () )
VAR CurrentNumber =
    SELECTEDVALUE ( 'Table'[Number] )
VAR Result =
    IF (
        (
            NOT ( ISFILTERED ( 'Table'[Number] ) )
                && CurrentNumber = MaxNumber
        )
            || ISFILTERED ( 'Table'[Number] ),
        1
    )
RETURN
    Result
Add this as a filter to the table visual and set it to show only when the value is 1
Hi @rob_vander2 ,
Just wanted to check if you had the opportunity to review the suggestion provided?
If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank You
Hi @rob_vander2 ,
Just wanted to check if you had the opportunity to review the suggestion provided?
If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank You
Hi @rob_vander2 ,
Just wanted to check if you had the opportunity to review the suggestion provided?
If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank You
You could create a measure like
Row is visible =
VAR MaxNumber =
    CALCULATE ( MAX ( 'Table'[Number] ), REMOVEFILTERS () )
VAR CurrentNumber =
    SELECTEDVALUE ( 'Table'[Number] )
VAR Result =
    IF (
        (
            NOT ( ISFILTERED ( 'Table'[Number] ) )
                && CurrentNumber = MaxNumber
        )
            || ISFILTERED ( 'Table'[Number] ),
        1
    )
RETURN
    Result
Add this as a filter to the table visual and set it to show only when the value is 1
Not possible within the same table. You need to use a disconnected table for the Number slicer.
 
					
				
				
			
		
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
 
            | User | Count | 
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | 
| User | Count | 
|---|---|
| 23 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |