Forum Discussion
Get data from table 2
- 6 years ago
Hi Anonymous ,
Your column chart's x-axis and y-axis are both from Table 1, not Table 2. So, it will show blank when you choose "January" or "February".
Try this:
1. Create measures. Please pay attention to your blank values in "Concatenate". Not blank, but " ".
Count of Defected data = IF ( MAX ( 'Data Collection'[Concatenate] ) = " ", BLANK (), COUNT ( 'Data Collection'[Concatenate] ) )Count of defected = IF ( MAX ( 'dCollection(Jan-Feb)'[Concatenate] ) <> " ", COUNT ( 'dCollection(Jan-Feb)'[Concatenate] ) )Defected all = IF ( ISBLANK ( MAX ( 'Concatenate'[Concatenate] ) ), BLANK (), [Count of defected] + [Count of Defected data] )2. Create a table.
Concatenate = FILTER ( VALUES ( 'Data Collection'[Concatenate] ), 'Data Collection'[Concatenate] <> " " )3. Create a column chart.
PBIX file attached.
Best Regards,
IceyIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
Your column chart's x-axis and y-axis are both from Table 1, not Table 2. So, it will show blank when you choose "January" or "February".
Try this:
1. Create measures. Please pay attention to your blank values in "Concatenate". Not blank, but " ".
Count of Defected data =
IF (
MAX ( 'Data Collection'[Concatenate] ) = " ",
BLANK (),
COUNT ( 'Data Collection'[Concatenate] )
)Count of defected =
IF (
MAX ( 'dCollection(Jan-Feb)'[Concatenate] ) <> " ",
COUNT ( 'dCollection(Jan-Feb)'[Concatenate] )
)Defected all =
IF (
ISBLANK ( MAX ( 'Concatenate'[Concatenate] ) ),
BLANK (),
[Count of defected] + [Count of Defected data]
)
2. Create a table.
Concatenate =
FILTER (
VALUES ( 'Data Collection'[Concatenate] ),
'Data Collection'[Concatenate] <> " "
)
3. Create a column chart.
PBIX file attached.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Icey,
Thanks for the solution.
If I select by line 100 then it should get around 1667 but it showing too many like ten thousands in bar charts.
And also once I select by line 100 then both charts should get same values not different.
Could you please recheck why its showing. Sorry to trouble you.
Kind regards,
pv
- Anonymous6 years agoNot applicable
Hi Icey,
Sorry. Its not 1667 because which you got old data and I did refresh the data file now, so it won't come 1667 for you but both charts value should get same.
Kind regards,
pv
- Icey6 years agoCommunity Support
Hi Anonymous ,
I am not very clear about the problem you describe. Please give me some screenshots.
Best Regards,
Icey
- Anonymous6 years agoNot applicable
Hi Icey,
Thank you so much for your help and others as well.
Its really amazing and this forum is very helpful.
I was confusing before with your solution but I got clarity now because I'm looking for sum of defected but you have done count of measures. Sorry, its my mistake I should have told you before. I've created another sum of measures then I got the answer.
I got one more question please...
Can we create same measures in dCalendar table instead of doing another table like as you done?
Kind regards,
pv