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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
PowerBI88
Resolver I
Resolver I

Measure does not get filtered by specific column

Hi,

I have defined a table this way: 

 

RegressionelineareApplicazoni(Fine Mese) = SUMMARIZE('Forecasting Applicazioni','Forecasting Applicazioni'[appName])
 
then I created a measure on the same table this way: 
Budget = calculate((DATEDIFF ( DATE ( YEAR ( DataForecasting[DataForecasting Value] ), 1, 1 ), DataForecasting[DataForecasting Value], DAY ) + 1)*sum('Baseline Gen-Febr-Mar'[Giornaliero]))
 
I am not able to filter "Budget" measure by column appName which is on the same table.
 
can you provide me some help on how to solve this issue?
 
Thank you
Kind regards
Marta
1 ACCEPTED SOLUTION
PowerBI88
Resolver I
Resolver I

Hi I managed to solve my problem, it was due to a relationship misconfiguration.

 

Kind regards

Marta

View solution in original post

6 REPLIES 6
PowerBI88
Resolver I
Resolver I

Hi I managed to solve my problem, it was due to a relationship misconfiguration.

 

Kind regards

Marta

Anonymous
Not applicable

Hi @PowerBI88 ,

 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file without sensitive data.


Best Regards,

Rico Zhou

amitchandak
Super User
Super User

@PowerBI88 , is appName in the table Baseline Gen-Febr-Mar or table joined with Baseline Gen-Febr-Mar , if yes, it filtering Baseline Gen-Febr-Mar ?

 

 

 

refer if needed

Distributing/Allocating the Yearly Target(Convert to Daily Target): Measure ( Daily/YTD): Magic of CLOSINGBALANCEYEAR With TOTALYTD/DATESYTD: https://community.powerbi.com/t5/Community-Blog/Power-BI-Distributing-Allocating-the-Yearly-Target-C...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

PowerBI88_0-1649336115979.png

Here is the diagram with the relationships.

 

Let me know if you need further details.

 

Thanks

Marta

I've checked and I am not able neither to filter Baseline by the appName contained in RegressionelineareApplicazioni.

Anonymous
Not applicable

Hi @PowerBI88 ,

 

 

RegressionelineareApplicazoni(Fine Mese) = SUMMARIZE('Forecasting Applicazioni','Forecasting Applicazioni'[appName])

 

According to your measure, I think 'RegressionelineareApplicazoni(Fine Mese)' Table should be a Dimtable with De-duplicated appName from 'Forecasting Applicazioni' Table. So I am confused that why does the relationship between 'RegressionelineareApplicazoni(Fine Mese)'[appName] and 'Forecasting Applicazioni' [appName] is many to many. I think it should be one to many from 'RegressionelineareApplicazoni(Fine Mese)'[appName] to 'Forecasting Applicazioni' [appName].

Due to many to many relationship, you could only get to total sum from 'Baseline Gen-Febr-Mar' Table.

Here I suggest you to add some filter in your measure when you are calculating the sum of 'Baseline Gen-Febr-Mar'[Giornaliero].

Try this measure:

 

Budget =
VAR _DATEDIFF =
    DATEDIFF (
        DATE ( YEAR ( DataForecasting[DataForecasting Value] ), 1, 1 ),
        DataForecasting[DataForecasting Value],
        DAY
    ) + 1
VAR _SUM =
    CALCULATE (
        SUM ( 'Baseline Gen-Febr-Mar'[Giornaliero] ),
        FILTER (
            ALL ( 'Baseline Gen-Febr-Mar' ),
            'Baseline Gen-Febr-Mar'[Applicazione]
                = MAX ( 'RegressionelineareApplicazoni(Fine Mese)'[appName] )
        )
    )
RETURN
    _DATEDIFF * _SUM

 

 

Best Regards,
Rico Zhou

 

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

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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