Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
im trying to build a measure to calculate Value of top 500,1000,1500,2000 and other.
My Dax so far is:
DB3_TEST_Summe =
VAR Points_Top_Lager = [DB3__top_Lager_Check] + [DB3_pro_Stück_Top_Lager_Check] + [Rendite_Top_Lagerführend_Check] + [Retouren_tpü_check] + [Menge_top_Lager_check]
VAR Ranking =
IF (
AND ( HASONEVALUE ( 'Top-Lagerführend'[Bezeichnung] ), [Points_Top_Lager] = 5 ),
RANKX (
ALLSELECTED ( 'Top-Lagerführend'[Bezeichnung] ),
[DB3_Top],
,
DESC,
DENSE
),
""
)
VAR __Table =
ADDCOLUMNS ( 'Top-Lagerführend', "__Ranking", Ranking )
VAR SUMU =
CALCULATE (
SUM ( 'Top-Lagerführend'[DB3] ),
(
SELECTCOLUMNS (
FILTER ( __Table, [__Ranking] <= 500 ),
"Bezeichnung", 'Top-Lagerführend'[Bezeichnung]
)
)
)
RETURN
SUMU
VAR Points_Top_Lager is checking if all the filters i have a either true or not true, because i only want to rank if evreything is true.
My Problem is, i want to use this measure to display the total sum in a card visuel.
And it's not working.
I think its because if the haseonevalue.
Because if add "Bezeichnung" in a tabel visuel its working.
So, what would be the correct soulution?
Hi @Yonah - It is a little hard to follow your logic, so is it possible to upload a file with anonymous/masked data?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
70 | |
55 | |
37 | |
31 |
User | Count |
---|---|
83 | |
64 | |
63 | |
49 | |
45 |