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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
johnmelbourne
Helper V
Helper V

Sum total sales where equal to $50

Hi

 

I have a 'floor' for a tax of $50.

So where the charge is less than $50, I charge $50.

 

Now I want to sum all those customers where I have charged $50.

 

I want to sum the total tax where the equal exactly $50.00

And I also want to count the customers where the tax equal exactly $50.00.

 

Columns used are

Revenue     PercentageShare  

 

So Revenue X PercentageShare = Charge

 

where charge is les than $50 (the floor), charge $50.

 

and I want to do something like

 

CALCULATE( [Charge], FILTER( [Charge] = $50 ))

 

but I get the boolean true false error. Any tips? 

 

Thanks

 

 

 

1 ACCEPTED SOLUTION

@johnmelbourne -

I don't suppose you're open to just adding an additional column?

Status = 
IF(
    'Table'[Charge] = 50,
    "Modified",
    "Unchanged"
)

Then you can use that in a Matrix letting the visual do the filtering for you with some simple Measures.

8.png

 






Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



View solution in original post

4 REPLIES 4
ChrisMendoza
Resident Rockstar
Resident Rockstar

@johnmelbourne -

Do you mean like:

7.png

Charge = 
IF(
    FLOOR('Table'[Revenue]*'Table'[PercentageShare],50) < 50,
    50,
    'Table'[Revenue] * 'Table'[PercentageShare]
)





Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



That is the scenario precisely, but I worked that part out although I didnt know about the floor function.

But what i need to do now is
a) sum the rows that are charged 50
b) count the customers (rows) that have charge 50
c) sum the charges that are above the charge 50.

This is my issue (essentially creating a measure total of floor charges, total of non-floor charges, count of floor charges.

My attempts are failing maybe because I am using a the measure [charge] in the filter part of the calculate.

I have explored calculate and sumx but not quite getting it correct.

Your assistance @ChrisMendoza to help this beginner would be appreciated.

Thanks

@johnmelbourne -

I don't suppose you're open to just adding an additional column?

Status = 
IF(
    'Table'[Charge] = 50,
    "Modified",
    "Unchanged"
)

Then you can use that in a Matrix letting the visual do the filtering for you with some simple Measures.

8.png

 






Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



I am fine with any solution  !!! Thanks for your help and knowledge sharing. Much appreciated.

John

 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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