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 Icey,
Thank you. I couldn't reply from private message.
I've tried with sample to get values from different table but it doesn't work out from my side. Please see the below print screen. I think something wrong with my Power BI.
I've tried to create second column in same file (test832609) which you sent me the link but doesn't work out.
Kind regards,
pv
Hi Anonymous ,
You need to create a Table.
Best Regards,
Icey
- Anonymous6 years agoNot applicable
Oh Sorry. I'm doing mistake here i.e., I'm creating new table from Enter data button from home tab instead of creating new table from modelling.
Thank you so much Icey.
I hope won't distrub you again.
Kind regards,
pv
- Icey6 years agoCommunity Support
Hi Anonymous ,
You are so welcome.
Best Regrads,
Icey