The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
if hmg_gift_amoount between 10.00 and 99.99 and hmg_gift_cycle = Recurring then " Recurring 10 - 99.99"
Else If hmg_gift_amoount between 100.00 and 249.99 and hmg_gift_cycle = Recurring then " Recurring 100 - 249.99"
Else "Recurring 250+"
if hmg_gift_amoount between 10.00 and 499.99 and hmg_gift_cycle = Single then " Single 10 - 499.99"
Else If hmg_gift_amoount between 500.00 and 999.99 and hmg_gift_cycle = Single then " Single 500 - 999.99"
Else "Single 1000+"
Any help would be greatly appreciated!
This should definitely work for you.
OK before i post the example, the potential problem i see here that bin values are overlapping which is making it difficult for you to handle.
for reccuring 1st bin is between 10 - 49.99 while for single the bin is 10 - 499.99. We can not handle this the way you are trying to handle in one statement. if you can somehow manage a unique bin size then below will definitely help.
Step1: Create a conditional columns to define the bins
Step2: You can create a conditional column to compare these with Reccuring / Single
Step2:
Create a Conditional Column for comparison
Can something like this work for you using a Switch True Statement
for your convenience, i am putting this image as an Example. you can use your data to build this.
I hope this works for you. Please do give your feed back for the solution.
As stated earlier, this does not work properly for what I am trying to do. That is why I want to do this with a DAX formula. I have tried this.
Hello, there are two ways to do this, either you create a calculated column with these bins of create a conditional column in power query. Both will work perfect.
I have tried that, I cannot get it to work. Please share an example here.