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.
Solved! Go to Solution.
@Anonymous , I doubt I have seen something like this. Good Idea to log.
https://ideas.powerbi.com/ideas/
or explore custom visual - https://appsource.microsoft.com/en-us/marketplace/apps?product=power-bi-visuals
I know this is an old thread, but having originalIy come here for help, I found a way of doing this so thought it might be worth sharing. It's fiddly!
Essentially what you have to do it make the background transparent (or remove) and then add another chart behind it. This chart is a stacked column chart with the y axis reversed (so it comes down from the top, rather than up from the bottom as normal) where the main category is "invisible" (i.e. white or the background colour) and the 2nd category is very thin so as to resemble a line. Get rid of all axes, labels,gri lines etc.. The hardest part is making the stack wide enough to cover all your data points. Power BI hates this for some reason so you may have to use several of these charts in the background to cover all your points.
I needed 3 measures:
GreaterThan = IF( [Clicks per entry] >= CALCULATE ( AVERAGE('Themes'[Total clicks] ), ALL( 'Themes'[Theme] ) ) ,"Y")
AveMean Invis = COUNTX(SUMMARIZE(Themes,Themes[Theme]),[GreaterThan])-[AveLine Line]
AveLine Line = 0.1
The first works out if the selection (her a line) is greater than the average and is then used in the second to give the number of lines greater than average.The third is just the thickness of the line. If you have widely varying numbers of lines you might want to tweak this a little. I've used this in the second measure as well, purely for cosmetic reasons.
So then you put measures 2 & 3 into the stacked column chart in the background, change the settings as detailed above and this then should vary as the main table does, even if you add slicers.
Hope that helps
Thanks
Matt
The average of ratio column is 85.36% so the line depicts product above the average nad below the average. I've already added measures to my table visual in power BI.
Please note in visual above, apart from Product ID, Orders recd, Orders shipped and issues, rest all the measures
where Ratio = shipped/received
I need average of ratio to be depicted as line in table visual. Kindly help!
@Anonymous , Line in table visual?
You can have avg measure if you need
avg measure = calculate([measure], allselected())
or
avg measure = calculate([measure], all(Table))
How do I add this then in my table visual as average line?
@Anonymous , can you share what do mean by a line, can share some reference screenshot.
You can add measure to table visual
@Anonymous , I doubt I have seen something like this. Good Idea to log.
https://ideas.powerbi.com/ideas/
or explore custom visual - https://appsource.microsoft.com/en-us/marketplace/apps?product=power-bi-visuals
Thanks for your help! 🙂
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 |
---|---|
113 | |
99 | |
80 | |
70 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |