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
AnthonyPen
New Member

Error with True/false expression used as a table filter expression

Hello,

I ge the following error: A function 'CALCULATE' has been used in a True/False expression that is used as a table filter expression. This is not allowed.

Can someone help me with measure:

 

# Products for 70% Threashold = CALCULATE([count all data var to reach tar],'Data#2'[Cumulated no. Of repl.]<=[Pareto 70% # of Replenishments])

 

 

 

2 REPLIES 2
MEEnergy
Frequent Visitor

Need more info on what you are trying to get and the data but try this

# Products for 70% Threashold =
CALCULATE([count all data var to reach tar], FILTER(ALL(Data#2),[Cumulated no. Of repl.]<=[Pareto 70% # of Replenishments]))


Hi,

Thx for that, however, this DAX expressions gvies the wrong results.

I'll elaborat on what i'm trying to do:

- The measure [Pareto 70% # of Replenishments] store a numeric value

- I want to comare that numeric value and count all the lines of data that are less than that value. I'll use the measure [# Products for 70% Threashold] to store that value

- My data is coming from a simple Excel file

 

Thanks in adavnce for the insight

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.