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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Vahks
Helper I
Helper I

Filter only with a slicer date don't work

Hello,

 

I tried several methods and did several searches but without success.

 

Here is my problem :

 

All data comes from a single source table.

 

I have a date field ( Table[Date] ) integrated into a slicer :

Vahks_0-1706740520646.png

I want to count the number of dates dynamically between the two date when I move the slicer but I don't want another filter to be able to modify the result.

I tried this dax (and many others!):

 

 

Measure = CALCULATE ( 
 COUNT( Table[Date] ), 
 REMOVEFILTERS ( 'Table' ), 
 VALUES(Table[Date]) 
)

 

 

 

Here is the result :

Vahks_2-1706742266709.png

404 seems to be the right number of date between the two dates selected. I don't know why the figures for each Value are not the sum of the total.


 But when I click on a filter

Vahks_1-1706741868729.png

You can see that the total is not correct because I don't want the segment filter to change the number of dates corresponding to the chosen date range.

 

How can i avoid that ?

Thanks for help !

 

 

7 REPLIES 7
Anonymous
Not applicable

Hi @Vahks 

 

I did a test that may help you.

 

My sample:

vxuxinyimsft_0-1706768589348.png

 

vxuxinyimsft_1-1706768609770.png

 

Measure:

sum = CALCULATE(COUNT('Table'[Date]), FILTER('Table', [Date] >= MIN('Date'[Date]) && [Date] <= MAX('Date'[Date])))
 

 

vxuxinyimsft_2-1706768858867.png

 

vxuxinyimsft_3-1706768871688.png

Is this the result you expect?

 

If I've misunderstood you, please provide detailed sample data: How to provide sample data in the Power BI Forum - Microsoft Fabric Community . Or show it as a screenshot or pbix. Please remove any sensitive data in advance. If uploading pbix files please do not log into your account.

 

Best Regards,

Community Support Team _Yuliax

 

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

Hello,

 

Nobody have an idea ? 🙂

 

Thanks

Hello,

 

Thanks for this but it's not this that i need 🙂

 

I share a pbix with you, i just need to fix the max value from a Jauge like this :

Vahks_0-1706779035224.png

When i select 5 June 2023 to 5 November 2023, i have 495, so i want the 495 is fixed with the selection of the slicer date but if I click on the visual filter like above on Filter 1, the Jauge is update like this :

Vahks_1-1706779175728.png

 

The max change with 487 but i want the max at 495, i share you my sample report here : https://drive.google.com/file/d/1awaSMnkSWXqsMyWzf9lgWbhKroM5W7hy/view?usp=sharing 

Thanks for help !

Anonymous
Not applicable

Hi @Vahks 

 

I would like to apologize for the belated reply.

 

Since I can't get the data through the link you gave, I'll give you an idea over here.

 

You can fix the maximum value of visual with the button shown in the screenshot.

vxuxinyimsft_0-1707209837287.png

 

For more details, you can read related document link:

Radial gauge charts in Power BI - Power BI | Microsoft Learn

 

Best Regards,
Community Support Team _Yuliax

 

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

Ashish_Mathur
Super User
Super User

Hi,

Turn Off interaction between the Segment filter and the visual.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ritaf1983
Super User
Super User

Hi @Vahks 

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Hello,

 

Thanks for this, i have share above a sample report and i explain more the context !


Thanks

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors