Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
abc_777
Solution Specialist
Solution Specialist

hi

HI

 

I have two tables that has two column values

 

i have two measures

I want to create a measure that can swich and show values  when I select column value from first table

and

when i select column values of second table then in that new measure it would show the values of second measure

 

abc_777_0-1667568311753.png

 

Total Quantity in Piece (Measure) = CALCULATE
(SUMX('bm_retail_t sale', 'bm_retail_t sale'[SQTY] - 'bm_retail_t sale'[RQTY]))
 
measure is for sale_store Table
 
and 
 
Total Measure Multi = (SUM('bm_retail_t sale'[SQTY]) - SUM('bm_retail_t sale'[RQTY])) * SUM('bm_retail_t ssummary'[NET_AMT])
 
is for summart_store table
 
abc_777_1-1667568419743.png

 

 

so i want a new measure that can  switch these two measue when select sale_store and summary_store accordingly

 

Two tables, Two column values, two measure switching 

 

New Measure = 

 switch,

Total Quantity in Piece (Measure) ,
Total Measure Multi
 
 
sample file attached
 
thanks
1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @abc_777 ,

 

It looks like you're going to create separate field tables for these two slicers. 

Because they are two fields that are not connected, the slicer chooses not to interfere with each other.

Then specify the priority in the formula, and use the SELECTEDVALUE function or the ALLSELECTED function to call the result of the slicer selection.

I made a simple sample for reference. Hope it helps you.

 

vstephenmsft_0-1667812870170.png

vstephenmsft_1-1667812879776.png

 

 

Best Regards,

Stephen Tao

 

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

1 REPLY 1
v-stephen-msft
Community Support
Community Support

Hi @abc_777 ,

 

It looks like you're going to create separate field tables for these two slicers. 

Because they are two fields that are not connected, the slicer chooses not to interfere with each other.

Then specify the priority in the formula, and use the SELECTEDVALUE function or the ALLSELECTED function to call the result of the slicer selection.

I made a simple sample for reference. Hope it helps you.

 

vstephenmsft_0-1667812870170.png

vstephenmsft_1-1667812879776.png

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.