Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
diegolima
Helper III
Helper III

Making a Bar Graph by Selecting Two Measure Values

Hello guys, how are you?

 

I need make a bar graph like this:

pbi temp 1.png

 

And my table is like this:

 

pbi temp 2.png

I need selected one number for day of column "Equipamento" that don't be in blank in the column "Conteudo" and that column "MEDIA" have value above 8000, but my user always will go selected this ranhe of 7 days, for this I need that this information has ocurred for 3 days. In short, in the range of 7 days, select "Equipamento" with an average above 8000 in the column "MEDIA" for 3 days.

 

Can anybody help me?

 

Thank you all!

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @diegolima ;

You could create a flag measure like below:

flag = IF(CALCULATE(AVERAGE([MEDIA]),FILTER(ALLSELECTED('Table'),[Date]=MAX([Date])&&[Conteudo]<>BLANK()))>8000,1,0)

Then apply it into filter:

vyalanwumsft_0-1628142551926.png

The final output is shown below:

vyalanwumsft_1-1628142578933.pngvyalanwumsft_2-1628142601525.png

If it's not right, please share you file after removing sensitive information.

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yalanwu-msft
Community Support
Community Support

Hi, @diegolima ;

You could create a flag measure like below:

flag = IF(CALCULATE(AVERAGE([MEDIA]),FILTER(ALLSELECTED('Table'),[Date]=MAX([Date])&&[Conteudo]<>BLANK()))>8000,1,0)

Then apply it into filter:

vyalanwumsft_0-1628142551926.png

The final output is shown below:

vyalanwumsft_1-1628142578933.pngvyalanwumsft_2-1628142601525.png

If it's not right, please share you file after removing sensitive information.

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors