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
Anonymous
Not applicable

Showing total in a table

Dear all, good morning. 

 

I have the below table and would like to create a chart that would showcase the total of cargoes by day.

 

Cargo IDEntered DayReleased Date
A01/01/202103/01/2021
B02/01/202104/01/2021
C01/01/202102/01/2021

 

I managed to create it using the below with @speedramps  help

 

Cargoes in Warehouse =

VAR mydate = SELECTEDVALUE('Calendar'[Date])
var min_date = CALCULATE(MIN('Calendar'[Date]))
Var max_date = CALCULATE(MAX('Calendar'[Date]))
VAR validrows = FILTER(Commodity_List, Commodity_List[Warehouse Receipt Date] <= min_date && Commodity_List[Release Out Date] >= max_date)
RETURN
COUNTROWS(validrows)
 
Pedro_Okazaki_0-1655576863630.png

 

But now I need to have a table/matrix containing all cargo ID for the month, so if I click on a specific month it will show all cargoes for that month as a list / table.

 

Could anyone help me?

 
1 ACCEPTED SOLUTION
speedramps
Super User
Super User

Hi again Pedro !

I have updated the example 

 

There is a By Mate page and By Month page.

 

Click on day or month on the graph and all the valid cargo details will be displayed in the bottom visual.

 

This is done by adding the Valid Cargos field in the filter panel

See attached screen print

 

please click thumbs up and accept solution, thank you.

 

 

speedramps_0-1655654375986.png

 

View solution in original post

5 REPLIES 5
speedramps
Super User
Super User

Hi again Pedro !

I have updated the example 

 

There is a By Mate page and By Month page.

 

Click on day or month on the graph and all the valid cargo details will be displayed in the bottom visual.

 

This is done by adding the Valid Cargos field in the filter panel

See attached screen print

 

please click thumbs up and accept solution, thank you.

 

 

speedramps_0-1655654375986.png

 

Anonymous
Not applicable

Incremental refresh to build data - snapshots 

The man and the myth, thanks and solution accepted 🙂

Thak you Pedro. Well done !

speedramps
Super User
Super User

As explained before, this measure will handle by day, month with a calendar

 

Valid cargos =
var min_date = MIN ( 'Calendar'[Date] )
Var max_date = MAX ( 'Calendar'[Date] )
VAR validrows = FILTER ( Commodity_List , Commodity_List[Entered Day] <= max_date && Commodity_List[Released Date] >= min_date )
RETURN
COUNTROWS ( validrows )
 
 
 
 
Anonymous
Not applicable

@speedramps 

 

But how can I see which cargoes are being considered for each date? I would like to click on the chart and show me on a table what are the ones considered (like cargo A,B for day2)

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.