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
Anonymous
Not applicable

3 Values, Total Value, Selected Value, Partial Values

Hi all.

 

Well, I have to do 3 Measures.

 

1 Show values all month

2 Show values selected month

3 Show values partial month

 

Ex:

val.PNG

 

 

link with files  https://drive.google.com/open?id=11lCWE0-K-c7J9lAKC9KFnnlq8GAQyhWZ

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

Hi @Anonymous,

 

You can refer to below steps to achieve your requirement.

 

Prerequest:

1. Create two slicer tables based on current table columns.
2. Slicer tables can't contains relationship to original table.

 

Steps:

1 Write formula to create slicer tables:

Value Slicer = VALUES('Records'[Value])
Month Slicer = VALUES('Records'[Month])

2. Create slicer with above table columns.

14.PNG15.PNG

 

3. Write measure based on slicer.

Total Value(All Month) = CALCULATE(SUM('Records'[Value]),ALL('Records'[Month])) 

Total Value(Selected Month) = SUMX(FILTER(ALL('Records'),[Month] in ALLSELECTED('Month Slicer'[Month])),[Value])

Month Detail = CONCATENATEX(FILTER(ALL('Records'),[Value] in ALLSELECTED('Value Slicer'[Value])),[Month],",")

Result:

16.PNG

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @Anonymous,

 

You can refer to below steps to achieve your requirement.

 

Prerequest:

1. Create two slicer tables based on current table columns.
2. Slicer tables can't contains relationship to original table.

 

Steps:

1 Write formula to create slicer tables:

Value Slicer = VALUES('Records'[Value])
Month Slicer = VALUES('Records'[Month])

2. Create slicer with above table columns.

14.PNG15.PNG

 

3. Write measure based on slicer.

Total Value(All Month) = CALCULATE(SUM('Records'[Value]),ALL('Records'[Month])) 

Total Value(Selected Month) = SUMX(FILTER(ALL('Records'),[Month] in ALLSELECTED('Month Slicer'[Month])),[Value])

Month Detail = CONCATENATEX(FILTER(ALL('Records'),[Value] in ALLSELECTED('Value Slicer'[Value])),[Month],",")

Result:

16.PNG

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.

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