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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Martinator007
Frequent Visitor

Try to use result of measure in column diagram

Dear PowerBi experts.

 

I am new in this field but yesterday I had great help from the community to solve an issue.

I have the following simplified table:

IDStateDate
2232006.05.2018
2232408.05.2018
2232611.05.2018
2236612.05.2018
2252007.05.2018
2252409.05.2018
2252614.05.2018
2256615.05.2018
3012009.05.2018
3012410.05.2018
3012612.05.2018
3013113.05.2018
3016615.05.2018
4052012.05.2018
4052613.05.2018
4053116.05.2018
4056618.05.2018

 

I need the last state depending on a date (date is selected via slicer).  In my example the selection of 14.05.2018 should result in the following table:

 

IDState
22366
22526
30131
40526

 

Zubair_Muhammad helped me to create the solution:
https://community.powerbi.com/t5/Desktop/Finding-the-last-value-of-a-column-depending-on-the-selecte...

and i have exact the table I need by creating a date-column and using the following Measure: 

Measure = MAXX(TOPN(1;Filter(table1;[Date]<=selectedvalue('Calendar'[Date]));Table1[Date];Desc);[State])

Now I tried to get a column diagram in that manner:
StateNumber
262
311
661
 

But I find no solution to get the summarized number for each state depending on the date (14.05.2018).

 

I would be very happy if that would be possible.

Thanks and best regards,
martin

 

3 REPLIES 3
Martinator007
Frequent Visitor

Not sure if it is complex or I did not describe my issue on a good way. Maybe someone has an idea?

v-danhe-msft
Employee
Employee

Hi @Martinator007 ,

I could not understand why the number of state 26 is 2 due to the state of ID 225 should be 24(date of 26 is 5.14) right?

State Number
26 2
31 1
66 1

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Daniel

 

You are fully right! Thanks for your notice I did change the date to 5.14.

Warm regards,

Martin

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.