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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
160475
Helper I
Helper I

ignoring total value

dears i have the table below i would like to apply filter but ignore total value so i can show right percentage can anyone help 

160475_0-1667372087556.png

 

1 ACCEPTED SOLUTION

In that case use ISINSCOPE()

 

Something on the lines of:

Measure = 
IF(

     ISINSCOPE('Column name used on the rows of the Matrix'),
     [total tickets],

     CALCULATE([total tickets],ALL(Query1[WT_MNS]))
)

This should keep the filters on only the total while filtering the values in the matix.

 

Hope this helps.

 

Thank you,

Vishesh Jain

Did I answer your question?
If yes, then please mark my post as a solution!

Thank you,
Vishesh Jain

Proud to be a Super User!



View solution in original post

9 REPLIES 9
mariussve1
Solution Supplier
Solution Supplier

Hi,

 

In the measure you write:

 

IF ( HASONEVALUE ( Table[Column] ), "measure for tickets count", BLANK ()

)

 

Table[Column] = The table and column you have in the Table/Matrix visual

 

Br

Marius

doens't work 

visheshjain
Solution Supplier
Solution Supplier

Hi @160475,

 

From what I have understood, for the denominator when dividing you can use the ALL() function, so that will ignore the filters.

 

Hope this helps.

 

Thank you,

Vishesh Jain

Did I answer your question?
If yes, then please mark my post as a solution!

Thank you,
Vishesh Jain

Proud to be a Super User!



i have done this dax : 

Measure = CALCULATE([total tickets],ALL(Query1[TICKETS])) 
but still the total change once i apply filtir 

Hi @160475,

 

The column that you are using in the measure, is that the same column that you are using on the slicer/filter?

Did I answer your question?
If yes, then please mark my post as a solution!

Thank you,
Vishesh Jain

Proud to be a Super User!



no its not the same my filter is another column 

In that case you will need to use that column.

 

It would be really helpful if you could please upload a sample file with the desired result, as it will help us understand the problem better.

 

Thank you,

Vishesh Jain

Did I answer your question?
If yes, then please mark my post as a solution!

Thank you,
Vishesh Jain

Proud to be a Super User!



i got you and changed the measure to this 

Measure = CALCULATE([total tickets],ALL(Query1[WT_MNS])) 
but it locked the whole column i just want to lock the total 

In that case use ISINSCOPE()

 

Something on the lines of:

Measure = 
IF(

     ISINSCOPE('Column name used on the rows of the Matrix'),
     [total tickets],

     CALCULATE([total tickets],ALL(Query1[WT_MNS]))
)

This should keep the filters on only the total while filtering the values in the matix.

 

Hope this helps.

 

Thank you,

Vishesh Jain

Did I answer your question?
If yes, then please mark my post as a solution!

Thank you,
Vishesh Jain

Proud to be a Super User!



Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.