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

Calculate value based conditions other columns

Hello,

 

I need some help about multiple condition and linked at two slicers. 

 

I have two slicers: 1) exchange currency and 2) apply special formula:

1) (EUR) and (USD)

2) are simple slicer to apply formulas sl1 (default)-sl2 (minus a fixed value)-sl3 (minus other fixed value)

 

Fact table like as:

DateTagvaluesconv_applied?pos_applied?exchange_rate
2020-03-01tagA45yesnot1.5
2020-03-01tagB51notnot1.5
2020-03-01tagC80notnot1.5
2020-03-01tagD70yesyes1.5

 

Si , I create the slicers and I made a new calculate column to convert values to USD, when conv_applied col met the condition.

 

 

 

dolarConv = IF(
                FactsTable[conv_applied]=TRUE();
                DIVIDE(FactsTable[values]*FactsTable[exchange_rate];(1*FactsTable[const]));
                FactsTable[values]
)

 

 

 

second slicer will be apply in another combination. But I cannot to link this with the slicer, when I click USD, the plot don't show me the value. 

 

Thanks for your help, here my template. 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Greg_Deckler ,yes I understand you are right. I see other option, create different measure to calculate conversion and shows in the table? 

 

Because, I tried with it, and works, but I cannot to link the evaluation if conversion is applied or not by Boolean info on the table. I attached another example. (Obviously my table is only an example, I want to see only converted or not value per tag selected.).

Anybody could me give a suggestion? 

 

Thanks

Mr

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

Greg_Deckler
Super User
Super User

Didn't quite follow that, but if you are trying to update a column in a table based on a slicer, you can't do that.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hi @Greg_Deckler ,yes I understand you are right. I see other option, create different measure to calculate conversion and shows in the table? 

 

Because, I tried with it, and works, but I cannot to link the evaluation if conversion is applied or not by Boolean info on the table. I attached another example. (Obviously my table is only an example, I want to see only converted or not value per tag selected.).

Anybody could me give a suggestion? 

 

Thanks

Mr

Anonymous
Not applicable

Hello,

 

I solved myself my dilemma. 

After to create new two columns , I'd apply a special measure to interact both slicers per each rows, by condition pre-calculated.

 

I'll open a new thread about value format. Anyway, I'd found some suggestion in the forum.

thanks.

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.