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
Antonio91
Frequent Visitor

Filter by a measure - Basic Disconnected Table Method not applicable

Hi everybody,

I'm not an expert in Power BI. I've got a Line and Stacked Column Chart with some rainfall data.

Pluv Ca Bortolani.JPG

 

X axis has been rearrenged in order to display in columns the monthly precipitation from October (e.g. October 2021) to September (e.g. September 2022), and to reach this outcome I've used groups. Meanwhile, lines represent the cumulative annual precipitation in each hydrological year ("Anno idrologico" in the slicer on the left). Now, acting on the slicer allows me to filter the columns of the chart, but not the lines, which are calculated measures.  I've tryed to study the disconnected table method but it doesn't work, given that I guess i cannot rely on dates (they're not displayed in a chronological order) or amount of rainfall (each year cumulative precipitation restarts from zero). Please, can anybody help me?

 

Here are the links to the .pbix and the .xlsx files:

https://1drv.ms/u/s!AmB1iIhLzXlGgfYyMp8AtTT64ge-kw?e=msDcGV

 

Any suggestion is appreciated

 

Thanks a lot in advance

1 ACCEPTED SOLUTION
v-jialluo-msft
Community Support
Community Support

Hi @Antonio91 ,

 

Depending on your description, your issue is that the line chart doesn't show content based on the choice of slicer, but instead shows all the data all the time.

You can try to resolve this issue by modifying the measure. Please try:

[Ca'Bortolani [mm]] per 2017] =

IF(2017 in VALUES('Precipit  cumulata giornaliera'[Anno Idrologico]),

CALCULATE(

    SUM('Precipit  cumulata giornaliera'[Ca'Bortolani [mm]]]),

    'Precipit  cumulata giornaliera'[Anno Idrologico] IN { 2017 }

))

 

Final output:

vjialluomsft_0-1669876107249.png

 

If my understanding is wrong, please point it out.

 

Best Regards,

Gallen Luo

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

View solution in original post

2 REPLIES 2
v-jialluo-msft
Community Support
Community Support

Hi @Antonio91 ,

 

Depending on your description, your issue is that the line chart doesn't show content based on the choice of slicer, but instead shows all the data all the time.

You can try to resolve this issue by modifying the measure. Please try:

[Ca'Bortolani [mm]] per 2017] =

IF(2017 in VALUES('Precipit  cumulata giornaliera'[Anno Idrologico]),

CALCULATE(

    SUM('Precipit  cumulata giornaliera'[Ca'Bortolani [mm]]]),

    'Precipit  cumulata giornaliera'[Anno Idrologico] IN { 2017 }

))

 

Final output:

vjialluomsft_0-1669876107249.png

 

If my understanding is wrong, please point it out.

 

Best Regards,

Gallen Luo

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

It works perfectly, thanks a lot!

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.