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
clafferty
Regular Visitor

How to divide one dynamic value by another using smart narrative

I am using smart narrative to add text to my chart.  I need to divide one dynamic value by another to calculate a new value.  Is this possible?  

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

Hi @clafferty ,

Please try below steps:

1. my test table:

Sales:

vbinbinyumsft_0-1660716707006.png

Rate:

vbinbinyumsft_1-1660716741948.png

2.add a slicer and a line chart

3. create a measure

Volumn for $ =
VAR cur_rate =
    SELECTEDVALUE ( 'Rate'[To $] )
VAR cur_product =
    SELECTEDVALUE ( Sales[Product] )
VAR cur_profit =
    CALCULATE ( MAX ( Sales[Volume] ), Sales[Product] = cur_product )
RETURN
    DIVIDE ( cur_profit, cur_rate )

4. add a smart narrative ,click "+Value" you can add a new value with your demands

vbinbinyumsft_2-1660716923738.png

For more details, you can read related document: Smart narratives tutorial - Power BI | Microsoft Docs

Please refer the attached .pbix file

 

Best regards,
Community Support Team_ Binbin Yu
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

3 REPLIES 3
IGIL
Regular Visitor

Hi, I got the same problem and I cannot create a new measure because if I do it's not selectable. I work with "closed" model provided my IT colls. 

Any idea how to divide in the Dynamic value dialogue?

v-binbinyu-msft
Community Support
Community Support

Hi @clafferty ,

Please try below steps:

1. my test table:

Sales:

vbinbinyumsft_0-1660716707006.png

Rate:

vbinbinyumsft_1-1660716741948.png

2.add a slicer and a line chart

3. create a measure

Volumn for $ =
VAR cur_rate =
    SELECTEDVALUE ( 'Rate'[To $] )
VAR cur_product =
    SELECTEDVALUE ( Sales[Product] )
VAR cur_profit =
    CALCULATE ( MAX ( Sales[Volume] ), Sales[Product] = cur_product )
RETURN
    DIVIDE ( cur_profit, cur_rate )

4. add a smart narrative ,click "+Value" you can add a new value with your demands

vbinbinyumsft_2-1660716923738.png

For more details, you can read related document: Smart narratives tutorial - Power BI | Microsoft Docs

Please refer the attached .pbix file

 

Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

You would create a new measure for that, and then use that measure in your smart narrative.

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.