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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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.


Go to My LinkedIn Page


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.


Go to My LinkedIn Page


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors