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

The data for some years dissapeared.

I have 3 tables: Date, contracts, and suppliers.

 

Relations.

date[date] O > M contract[signDate]

suppliers[id] O > M contract[supId]

 

and I wrote this measure

IF(ISFILTERED('suppliers'[name ]), Calculate(sum(contract[contruct_amount])), CALCULATE(sum(contract[contruct_amount])),  FILTER('suppliers', [id]= "070440006322")))

 the measureis working, but data for some years dissapeared.

manap_0-1651056157330.png

In the page no filter has been used

 

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

Hi @Anonymous ,

 

It seems that your measure is wrong

Eyelyn9_0-1651560443327.png

The ) is in the wrong place, please modify:

Measure = IF(ISFILTERED('suppliers'[name]), Calculate(sum(contract[contruct_amount])), CALCULATE(sum(contract[contruct_amount]),FILTER('suppliers', [id]= "070440006322")))

 

Or if you are still confused about it, please provide me with more details about your table and your expected outputs or share me with your pbix file after removing sensitive data.

Refer to:

How to Get Your Question Answered Quickly

How to provide sample data in the Power BI Forum

 

 

Best Regards,
Eyelyn Qin
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

4 REPLIES 4
v-eqin-msft
Community Support
Community Support

Hi @Anonymous ,

 

Any updates?

 

Best Regards,
Eyelyn Qin

v-eqin-msft
Community Support
Community Support

Hi @Anonymous ,

 

It seems that your measure is wrong

Eyelyn9_0-1651560443327.png

The ) is in the wrong place, please modify:

Measure = IF(ISFILTERED('suppliers'[name]), Calculate(sum(contract[contruct_amount])), CALCULATE(sum(contract[contruct_amount]),FILTER('suppliers', [id]= "070440006322")))

 

Or if you are still confused about it, please provide me with more details about your table and your expected outputs or share me with your pbix file after removing sensitive data.

Refer to:

How to Get Your Question Answered Quickly

How to provide sample data in the Power BI Forum

 

 

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

amitchandak
Super User
Super User

@Anonymous , do you have data for this id - [id]= "070440006322"  in your table ?

 


Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Anonymous
Not applicable

yes, I have data for the [id]= "070440006322"

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.