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
Anonymous
Not applicable

Issue with fromDate to ToDate

Hi All,

 

I have a scenarior to filter out date range from two columns

FromDate, ToDate

 

for that, I have created one Measure

 

Measure =
IF (
SELECTEDVALUE ( 'Table'[SrFromDate] ) <= MAX ( DimDate[FullDateAlternateKey] )
&& SELECTEDVALUE ( 'Table'[SrToDate] ) >= MIN ( DimDate[FullDateAlternateKey] ),
1,0
)
 
and used this measure in visual level filters and set to 1.
Its working fine If i have multiple columns available in grid.
But it does not work fine if i just want to see count of particular row in any other seprate grid.
 
Any idea how to fix this?
 
 
5 REPLIES 5
Anonymous
Not applicable

usually when you select a slicer, the selcted value becomes in the range of the selected range of date,
so try remove filters with the dax calculation to something like

measure = IF (
SELECTEDVALUE ( 'Table'[SrFromDate] ) <= calculate(MAX ( DimDate[FullDateAlternateKey] ),removefilters(dimdate[date]))
&& SELECTEDVALUE ( 'Table'[SrToDate] ) >= CALCULATE(MIN ( DimDate[FullDateAlternateKey] ),removefilters(dimdate[date])),
1,0
)
Anonymous
Not applicable

Hi @Anonymous 

You can refer to this blog .

How to provide sample data in the Power BI Forum - Microsoft Power BI Community

 

Best Regards,
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi @Anonymous 

Can you explain "But it does not work fine if i just want to see count of particular row in any other seprate grid." through a sample ? Or you can provide a pbix file to explain your need and expected result .

 

Best Regards,
Community Support Team _ Ailsa Tao

Anonymous
Not applicable

How to attache PBix file here? not able to see any option,

Anonymous
Not applicable

either import your pbix to one drive or google cloud then click on share and post the link

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.