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! Request now

Reply
Penn
Resolver I
Resolver I

Help convert a table into a chart

Hi all,

 

I have simplied my question and upload an example file here: 

https://drive.google.com/file/d/1sLSgz5iNBRoj07_yMIkgzpuXBxwfPVCk/view?usp=sharing

 

The raw data looks like this.

Case Table

Case.jpg

 

Date Table

Date.jpg

 

What I am trying to do here is to find out at the end of each month, what is the latest status the case is at. And I have successfully create a measure and show the result in a table.

Table.jpg

 

But when I tried to convert the table into a line chart, things become funny. Why does the line Count of Disqulifed Case still there after 31/10/2019? What I am expecting to see if only disqualifed line between 30/06/2019 to 30/09/2019 and only converted line after 31/10/2019 as per the table.

Question.jpg

 

 

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

Hi @Penn

It is ok?

Capture1.JPG

Creating Measures

fill status = CALCULATE(FIRSTNONBLANK('Case'[EOM Status],1),FILTER(ALLSELECTED('Case'),'Case'[EOM Date]<=MAX('Case'[EOM Date])))

Disqulifed = CALCULATE(DISTINCTCOUNT('Case'[Case ID]),FILTER(ALLSELECTED('Case'[Case ID]),'Case'[fill status]="Disqualified"))

converted = CALCULATE(DISTINCTCOUNT('Case'[Case ID]),FILTER(ALLSELECTED('Case'[Case ID]),'Case'[fill status]="Converted"))

the 'date2' is a table created by me and has a relationship with the main table

date2 = CALENDARAUTO()

Capture2.JPG

Best regards
Maggie
Community Support Team _ Maggie Li
If this post helps, please consider Accepting it as the solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @Penn

It is ok?

Capture1.JPG

Creating Measures

fill status = CALCULATE(FIRSTNONBLANK('Case'[EOM Status],1),FILTER(ALLSELECTED('Case'),'Case'[EOM Date]<=MAX('Case'[EOM Date])))

Disqulifed = CALCULATE(DISTINCTCOUNT('Case'[Case ID]),FILTER(ALLSELECTED('Case'[Case ID]),'Case'[fill status]="Disqualified"))

converted = CALCULATE(DISTINCTCOUNT('Case'[Case ID]),FILTER(ALLSELECTED('Case'[Case ID]),'Case'[fill status]="Converted"))

the 'date2' is a table created by me and has a relationship with the main table

date2 = CALENDARAUTO()

Capture2.JPG

Best regards
Maggie
Community Support Team _ Maggie Li
If this post helps, please consider Accepting it as the solution to help other members find it more quickly.

Thanks Maggie, works fine with the example, will integrate into my report.

 

Penn
Resolver I
Resolver I

all measures can be found in the attached file

 

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
Users online (1,978)