March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I want to achieve the following:
The Problem is, that the value column from my table visual is also a measure. Any idea how to achieve that?
Solved! Go to Solution.
Hi @John-Cena88 ,
First of all, many thanks to @Greg_Deckler for your very quick and effective replies, and I will give some additions below:
1.Create the sample table.
2.Create the new measure to calculate value.
Value =
VAR pro_ = SELECTEDVALUE('Table'[Product])
RETURN
IF(pro_ = "A1" || pro_ = "A2", 2,
IF(pro_ = "A3" || pro_ = "A4", 3,
IF(pro_ = "B1" || pro_ = "B2", 5, 6)
)
)
3.Create the new measure to calculate total for category.
total sum = CALCULATE(SUMX('Table', 'Table'[Value]), ALLEXCEPT('Table', 'Table'[Category]))
4.Drag the measure into the table visual. The result is shown below.
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Write this measure
Total value per category = calculate([Value],all(Data[Product]))
Hope this helps.
Hi @John-Cena88 ,
First of all, many thanks to @Greg_Deckler for your very quick and effective replies, and I will give some additions below:
1.Create the sample table.
2.Create the new measure to calculate value.
Value =
VAR pro_ = SELECTEDVALUE('Table'[Product])
RETURN
IF(pro_ = "A1" || pro_ = "A2", 2,
IF(pro_ = "A3" || pro_ = "A4", 3,
IF(pro_ = "B1" || pro_ = "B2", 5, 6)
)
)
3.Create the new measure to calculate total for category.
total sum = CALCULATE(SUMX('Table', 'Table'[Value]), ALLEXCEPT('Table', 'Table'[Category]))
4.Drag the measure into the table visual. The result is shown below.
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@John-Cena88 This looks like a measure aggregation problem. See my blog article about that here: https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149
The pattern is:
MinScoreMeasure = MINX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
MaxScoreMeasure = MAXX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
AvgScoreMeasure = AVERAGEX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
etc.
I tried your solution and it does not work. It still displays the total split by Product.
Hi @John-Cena88 ,
I provided the sample file above, try to use it. If the method is useful, please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Wisdom Wu
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
115 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
164 | |
116 | |
63 | |
57 | |
50 |