cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
RoshanK
Helper II
Helper II

Calculate Volume Share ( when filter is coming from a table)

Hi,

I have 3 tables - Calendar, Dimension & Fact table. I have 2 measures:- Volume = SUM(Sales[Volume]) & 

Volume Share =
DIVIDE(
    [Volume],
    CALCULATE(
        [Volume],
        ALLSELECTED(Dim),
        ALLSELECTED(Sales)
    ))

 

I am using Volume Share measure in a table & line chart in a same page. I want to modify this measure such that when a user selects Product A, I want the line chart to show same value as when nothing is selected. Please refer to image.

 

RoshanK_0-1689344135989.png

Any guidance will be appreciated!

Thanks in advance!

4 REPLIES 4
RoshanK
Helper II
Helper II

Hi again,

 

This logic that I derived from your measure works 😃

I think there is another simple way to do it but unless I can figure it out. This is fine. Refer to picture:

RoshanK_0-1689412858302.png

 

This works in test file but not in real. I must be missing something!

BeaBF
Impactful Individual
Impactful Individual

@RoshanK Hi!
Try with something like:
Volume Share Modified =
IF (
ISFILTERED ( Dim[Product] ),
DIVIDE ( [Volume], [Volume], 1 ),
DIVIDE (
[Volume],
CALCULATE ( [Volume], ALLSELECTED ( Dim ), ALLSELECTED ( Sales ) )
)
)

BBF

Hi @BeaBF

 

This doesn't work. Based on your measure, the line chart shows the same 100% value for all or no selection.

RoshanK_0-1689409776289.png

 

Thanks!

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors