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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
udhayakumarr28
Frequent Visitor

DAX-Based on slicer selection values show related column(Dimension and Measure Tables)

Hi Experts ,

 

consider below table is my source .

 

ProductIDProductCategorySubcategoryQuantityUnitPriceAmount
1AAAC1SC110220
2BBBC2SC25525
3CCCC3SC315460
4DDDC4SC4205100

 

 I created the Dimension and Measure table.

 

Dimension table Values consist ProductID,Product,Category,SubCategory.

    Values

ProductID
Product
Category
SubCategory

 

Measure table Values consist of Quantity, UnitPrice, Amount.

    Values

Quantity
UnitPrice
Amount

 

Here I'm using slicer in Dimension[values] & Measure[values] .

 

Example:

 

1.if I select Product in Dimension[values], Table visual will show

 

Result:

 

Product
AAA
BBB
CCC
DDD

 

 

2.if I select Product in Dimension[values] and Quantity in Measure[values].Table visual will show

 

ProductQuantity
AAA10
BBB5
CCC15
DDD20

 

3.If no values selected in Dimension[values] and Measure[values] 

Table will show Text( select any Dimension )

 

4.If only values selected in Measure[values] that time also

Table will show Text( select any Dimension )

 

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

All measures are in the attached pbix file.

 

One way to solve it is to transform the source table like the one below.

 

Picture1.png


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

1 REPLY 1
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

All measures are in the attached pbix file.

 

One way to solve it is to transform the source table like the one below.

 

Picture1.png


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.