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.
I have table
SrNO | PersonType | Allocation |
1 | Adult | 1 |
2 | Adult | 2 |
3 | Children | 2 |
4 | Unborn | 2 |
Now I want to show in Line chart
With 4 legend
For Allocation 1 , we will have Adult 1 and Individual 1
For Allocation 2 , we will have 1 Adult, 1 Children 3 Individual, 1 family
and this will be represneted indivial as line charts
Solved! Go to Solution.
To solve this I have create 4 measure
VAR SummaryTable =
SUMMARIZE('t',
'Allocation'[Allocation],
"Adults",
CALCULATE (
COUNTROWS ( 'Allocation' )
,'Allocation'[PersonType] IN { "Adult"}
)
)
RETURN
SUMX ( SummaryTable, [Adults] )
Similarly created for other and Plot them in LIne Chart in Y axis .
To solve this I have create 4 measure
VAR SummaryTable =
SUMMARIZE('t',
'Allocation'[Allocation],
"Adults",
CALCULATE (
COUNTROWS ( 'Allocation' )
,'Allocation'[PersonType] IN { "Adult"}
)
)
RETURN
SUMX ( SummaryTable, [Adults] )
Similarly created for other and Plot them in LIne Chart in Y axis .
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 |
---|---|
67 | |
64 | |
57 | |
39 | |
27 |
User | Count |
---|---|
85 | |
59 | |
45 | |
43 | |
38 |