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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Sujith12345
Helper I
Helper I

Values depends upon the relative slicer

Hi,

 

I have a measure,

CARs = calculate( count( table name= 0, column name)),

 

And for replacing the blank values, I use the measure,

visits with 0 CAR = if ( CARs = blank(), 0, CARs) 

And used another measure also,

CARs = calculate( count( table name= 0, column name))+0

 

 

And if I select the particular time period, it shows the remaining years as 0.

 

Can anyone please help to get the particular time period alone.

IMG_20211122_165317.jpg

 

3 REPLIES 3
v-xiaotang
Community Support
Community Support

Hi @Sujith12345 

Thanks for reaching out to us.

 

For the date table bellow, do you mean if you select Last 1 month, then you need the measure to return the period between 2021/10/1 - 2021/10/31?

In this scenario, this result is depended by the max date 2021/11/3 in Table.

Date
2021/9/1
2021/10/2
2021/11/3

If yes, you can get the expected result directly by the selection bellow,

vxiaotang_0-1637807738402.png

If not, could you describe your expected result based on the examples? Thanks.

 

 

Best Regards,

Community Support Team _Tang

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

@v-xiaotang , thanks for your response.

If I select the date range last 1month, I have to get the value for 2021 alone, but here it shows like 2017,2018,2019,2020 values as 0, I don't want that to be visible while I select ' last 1 month ' in relative slicer

Hi @Sujith12345 

Is the value in slicer same as that in the table visual? If they are not from the same table, you need to use visual level filter.

Not sure what's your data, could you provide some sample data or a sample file? so that we can write specified solution which meets your need. Thanks.

 

 

Best Regards,

Community Support Team _Tang

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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