Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello Team,
@Amit, @Greg , @tamerj1 , @lbendlin,
@amitchandak , @olgad , @Sahir_Maharaj , @FreemanZ , @tamerj1 , @Greg_Deckler
@christinepayton @audreygerred
I need to replicate the Pivot Table in Excel in my PowerBI. Pivot Table looks like this:
My current dataset looks like this:
I want to write an algorithm where it gives the summation of Avg Planned Cyc Time for each of the ESN Prefix for their corresponding Station No and it should reflect the Grand Total value of 764 towards the end counting the sum of all the Avg Planned Cyc Time for the list of Station No. EAC Serial are under the ESN Prefix.
My Avg Planned Cyc Time column inside this data table is a Measure inside the Measures Table based on T_Cycle_Takt_Time_Detail data table where it is:
Avg Planned Cyc Time = AVERAGE(T_Cycle_Takt_Time_Detail[Planned Time [min]]])
I have written following algorithms but none of them are working for all the Prefixes when I put them on a slicer(filtering box) inside the PowerBI dashboard.
Grand Total Prefix 4 = SUMX('T_Cycle_Takt_Time_Detail', 'T_Cycle_Takt_Time_Detail'[Planned Time [min]]])
Grand Total Prefix 8 = SUMX(VALUES('T_Cycle_Takt_Time_Detail'), [Avg Planned Cyc Time])
Grand Total Prefix 9 = SUMX(SUMMARIZE('T_Cycle_Takt_Time_Detail','T_Cycle_Takt_Time_Detail'[Prefix],"AvgTime",[Avg Planned Cyc Time]),[AvgTime])
Grand Total 10 = VAR CurrentESNPrefix = SELECTEDVALUE('T_Cycle_Takt_Time_Detail'[Prefix]) RETURN SUMX(FILTER('T_Cycle_Takt_Time_Detail', 'T_Cycle_Takt_Time_Detail'[Prefix] = CurrentESNPrefix), 'MEASURE'[Avg Planned Cyc Time])
My best algorithm is Grand Total Prefix 4 or Grand Total Prefix 8 where it works and correctly gives the correct Grand Total for most of the Prefixes but very incorrect results for some of the Prefixes due to which I cannot use it.
Can you please suggest a better algorithm? Why is this algorithm not working. Is it because of filter context or the PowerBI dashboard being too old or something else.
I will appreciate more than any help.
Thanks,
Hello @Ashish_Mathur ,
I cannot share the PBI file. My expected result is that it correctly shows the correct Grand Total(summation of Avg Planned Cyc Time for all the stations belonging to that Prefix) when I use the prefix slicer. Its working for most of the Prefixes but not for all.
Thanks
Hi,
Share the download link of the PBI file and show the expected result very clearly.
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 |
---|---|
81 | |
75 | |
60 | |
37 | |
33 |
User | Count |
---|---|
102 | |
56 | |
52 | |
46 | |
40 |