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.
Hello there,
I have the following requirement and I would appreciate your help
What are the steps/tweaks that I need to make in order to get this working? The solution presented in this thread is not suitable as I do not have the ability to join all 3 tables. Is there a way to achieve this in a different way?
The ideal outcome would be as follows:
See screenshot below. I am also attaching the sample Power BI file here.
Any help would be much appreciated.
Solved! Go to Solution.
Hi , @rvcedd
According to your description, you can try to follow these steps :
1)Create two calculated table :
slicer = DISTINCT(Table2[CategoryFullName])
slicer2 = DISTINCT(Table2[CategoryFullName])
2)Create two measures to display the average of Category Value:
MeasureAvg1 =
VAR SLICER1 =
VALUES ( slicer[CategoryFullName] )
RETURN
CALCULATE ( [MeasureAvg], FILTER ( Table1, Table1[Column] IN SLICER1 ) )
MeasureAvg2 =
VAR SLICER2 =
VALUES ( 'slicer 2'[CategoryFullName] )
RETURN
CALCULATE ( [MeasureAvg], FILTER ( Table1, Table1[Column] IN SLICER2 ) )
3)Create a new measure to replace the value in the visual:
Measure=
VAR un =
UNION (
VALUES ( slicer[CategoryFullName] ),
VALUES ( 'slicer 2'[CategoryFullName] )
)
RETURN
IF (
ISFILTERED ( slicer[CategoryFullName] )
&& ISFILTERED ( 'slicer 2'[CategoryFullName] ),
CALCULATE ( [MeasureAvg], FILTER ( Table1, Table1[Column] IN un ) ),
BLANK ()
)
Here is a sample:
Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi , @rvcedd
According to your description, you can try to follow these steps :
1)Create two calculated table :
slicer = DISTINCT(Table2[CategoryFullName])
slicer2 = DISTINCT(Table2[CategoryFullName])
2)Create two measures to display the average of Category Value:
MeasureAvg1 =
VAR SLICER1 =
VALUES ( slicer[CategoryFullName] )
RETURN
CALCULATE ( [MeasureAvg], FILTER ( Table1, Table1[Column] IN SLICER1 ) )
MeasureAvg2 =
VAR SLICER2 =
VALUES ( 'slicer 2'[CategoryFullName] )
RETURN
CALCULATE ( [MeasureAvg], FILTER ( Table1, Table1[Column] IN SLICER2 ) )
3)Create a new measure to replace the value in the visual:
Measure=
VAR un =
UNION (
VALUES ( slicer[CategoryFullName] ),
VALUES ( 'slicer 2'[CategoryFullName] )
)
RETURN
IF (
ISFILTERED ( slicer[CategoryFullName] )
&& ISFILTERED ( 'slicer 2'[CategoryFullName] ),
CALCULATE ( [MeasureAvg], FILTER ( Table1, Table1[Column] IN un ) ),
BLANK ()
)
Here is a sample:
Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Many thanks for your reply this is really useful.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
105 | |
77 | |
67 | |
63 |
User | Count |
---|---|
144 | |
107 | |
105 | |
82 | |
69 |