Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I'm working in an Excel Pivot table, and I have a disconnect table: TopN value.
My model:
In the disconnected table I have the following measure: TopN_Value= =SELECTEDVALUE('topN'[TopN value])
In the following filter context everything is ok:
But when I drag the TopN_Value measure to the table, it ignore the filter context, and list all the row values for "TARIFA". I think this not happen in Power Bi.
Thanks,
Paulo Praça
Hi @ppraca As I can understand that, you want to sum the top N value as chosen by the user from the disconnected table. If this is the case, you have to integrate selected value of TopN to your sum measure. Create sum measure to solve the problem :
SumConsumo =
VAR TopN_Value = SelectedValue(TopN[TopN_Value])
VAR _Result = Sumx(TOPN(TopN_Value, YourTable, [Value]), [Value])
Return
_Result
This measure will first select top N value as chosen by the user from the disconnected table, and then sum up the corresponding values. Please adjust the table and column names accordingly.
Hope this helps!!
If this solved your problem, please mark it as a solution!!
@ppraca ,You might need to use the CALCULATE function to modify the filter context explicitly.
Proud to be a Super User! |
|
Thanks for your answer, but doesn't work.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |