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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.