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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
rheitrich
Frequent Visitor

All items from one SharePoint list and a calculation from another related SharePoint list.

This is difficult to explain.

 

I have two SharePoint lists as data sources. One is a list of assets (Division/Location, AssetID, Asset Description). The second list is for asset inspections (AssetID, Inspection Date, Description).

 

I want a simple matrix visualization that shows all of the assets (rows) from the first list grouped by the division, whether an inspection has been performed or not. Columns for the Month-Year across the top, then as inspections are completed, the field value turns from red to green. I have everything working EXCEPT it only shows assets that have an inspection sometime during the date range specified (rolling 12 months). I want it to ALWAYS show all assets from the asset list and then change the color of the cell depending on whether the inspection has been done or not during the related month-year.

 

Any help would be appreciated. (The two lists are joined on assetID and that is it).

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @rheitrich ,

 

Check the document about show-items-no-data feature.

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-show-items-no-data 

If its' not what you want, please share more details like the fact table and the expected out put.

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

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

4 REPLIES 4
Anonymous
Not applicable

Hi @rheitrich ,

 

Check the document about show-items-no-data feature.

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-show-items-no-data 

If its' not what you want, please share more details like the fact table and the expected out put.

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

That is embarrassingly simple considering how much time i spent on it. Thanks so much for your response and your help.

amitchandak
Super User
Super User

@rheitrich ,The information you have provided is not making the problem clear to me. Can you please explain with an example.

I am assuming you already have data.  You can following with a date calendar

YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(('Date'[Date]),"12/31"))

Rolling 12 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],ENDOFMONTH(Sales[Sales Date]),-12,MONTH))
Rolling 12 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD(Table[Date Filer],MAX(Sales[Sales Date]),-12,MONTH))

 

Create a color measure using these. example

color =
switch ( true(),
FIRSTNONBLANK(Table[commodity],"NA") ="commodity1" && sum(Table[Value]) >500,"lightgreen",
FIRSTNONBLANK(Table[commodity],"NA") ="commodity2" && sum(Table[Value]) >1000,"lightgreen",
/// Add more conditions
"red"
)

 

In the conditional formatting, you can choose a measure, after selecting a "Field" Option

Refer

https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values

 

Please Watch/Like/Share My webinar on Time Intelligence: https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-Y...
My Youtube Tips at: https://www.youtube.com/playlist?list=PLPaNVDMhUXGYrm5rm6ME6rjzKGSvT9Jmy


Appreciate your Kudos.

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Greg_Deckler
Super User
Super User

Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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