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.
I have a list of names and values (value calculation shown in image). I want to create a chart that shows distribution of these values. The chart would have 1-40 along the bottom and a bar showing the total number of each '1ticket peryear'
So from the data below the value for 22 should = 7. As 22 shows 7 times in the dataset.
This feels like it should be easy but i can't get my brain to bring it together in PBI! TIA
Solved! Go to Solution.
Hi @OllyTron ,
I created some data:
Here are the steps you can follow:
1. Create measure.
Flag =
var _table=
SUMMARIZE(
ALL('Table'),'Table'[Index],'Table'[Year],'Table'[TickerCount],"Value",
CALCULATE(
SUM('Table'[TickerCount])/DISTINCTCOUNT('Date'[Year])))
VAR _ADDCOUNT =ADDCOLUMNS(
_table,"count",COUNTX(FILTER(_table,[Value]=EARLIER([Value])),[Value]))
return
SUMX(FILTER(_ADDCOUNT,[Index]= MAX('Table'[Index])),[count])
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @OllyTron ,
I created some data:
Here are the steps you can follow:
1. Create measure.
Flag =
var _table=
SUMMARIZE(
ALL('Table'),'Table'[Index],'Table'[Year],'Table'[TickerCount],"Value",
CALCULATE(
SUM('Table'[TickerCount])/DISTINCTCOUNT('Date'[Year])))
VAR _ADDCOUNT =ADDCOLUMNS(
_table,"count",COUNTX(FILTER(_table,[Value]=EARLIER([Value])),[Value]))
return
SUMX(FILTER(_ADDCOUNT,[Index]= MAX('Table'[Index])),[count])
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
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 |
---|---|
19 | |
14 | |
14 | |
11 | |
8 |