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
luis_pflucker
Helper I
Helper I

tables in dashboard

Hi All,

based on Issues and Execution excel tables (as attached), I wanted to create a Dasboard table using Power BI (model also in the attached).

In Execution table are showed Folders, Scenarios and Cases.

In Issues table are showed Folders, Scenarios, Cases and Issues columns, where one Issue could be linked to one or more Cases.

The idea is tha in Dashboard table are showed ONLY Folders, Scenarios (NO showed Cases), also Issues are showed in different columns

About Status Scenario column, the conditions are:

if Progress = 100%, then Completed,

else = 0% Not Started,

else blocked by one issue then unblocked,

else blocked by 2 or more issues then blocked.

 

I would appreciatte your support/suggestions.

Luis

 

Execution

FolderScenarioCases
Folder1SCN11CASE111
Folder1SCN11CASE112
Folder1SCN11CASE113
Folder1SCN12CASE121
Folder1SCN12CASE122
Folder1SCN12CASE123
Folder1SCN12CASE124
Folder1SCN13CASE131
Folder1SCN13CASE132
Folder1SCN13CASE133
Folder1SCN14CASE141
Folder1SCN14CASE142
Folder1SCN14CASE143
Folder2SCN21CASE211
Folder2SCN21CASE212
Folder2SCN21CASE213
Folder2SCN22CASE221
Folder2SCN22CASE222
Folder2SCN22CASE223
Folder2SCN23CASE231
Folder2SCN23CASE232
Folder2SCN23CASE233
Folder2SCN23CASE234
Folder2SCN24CASE241
Folder2SCN24CASE241

 

Issues

FolderScenarioCasesIssues
Folder1SCN11CASE111Issue1
Folder1SCN12CASE121Issue2
Folder1SCN12CASE123Issue1
Folder1SCN12CASE124Issue5
Folder1SCN13CASE133Issue5
Folder1SCN14CASE141Issue2
Folder1SCN15CASE153Issue3
Folder2SCN21CASE212Issue1
Folder2SCN21CASE212Issue4
Folder2SCN23CASE231Issue3
Folder2SCN23CASE233Issue4
Folder2SCN24CASE241Issue3

 

 

Dashboard

FolderScenarioProgressIssuesIssuesIssuesStatus Scenario
Folder1SCN11100%Issue1  Completed
Folder1SCN1225%Issue1Issue5Issue2Blocked
Folder1SCN1310%Issue5  Unblocked
Folder1SCN1410%Issue2  Unblocked
Folder1SCN1520%Issue3  Unblocked
Folder2SCN2130%Issue1Issue4 Blocked
Folder2SCN220%   Not Started
Folder2SCN2345%Issue4Issue3 Blocked
Folder2SCN245%Issue3  Unblocked
8 REPLIES 8
lbendlin
Super User
Super User

Sure but this will break down the moment you have four issues in a scenario. The "bad design" smell is strong here.

lbendlin
Super User
Super User

You cannot create dynamic columns in DAX. Columns are computed only once during dataset refresh.

 

It is possible to emulate this with measures, but it is an enormous effort for not much return. https://community.powerbi.com/t5/Community-Blog/Creating-a-custom-or-hybrid-matrix-in-PowerBI/ba-p/1...

 

 

Yes, too many steps, but is there anyway to create columns manually and store per each column using any DAX Calculation (do not know what DAX) the values, see below, there are 3 columns added manually and and each row is included the value, if no there is no value, then cell is empty. 

 

olderScenarioProgressIssues1Issues2Issues3Status Scenario
Folder1SCN11100%Issue1  Completed
Folder1SCN1225%Issue1Issue5Issue2Blocked
Folder1SCN1310%Issue5  Unblocked
Folder1SCN1410%Issue2  Unblocked
Folder1SCN1520%Issue3  Unblocked
Folder2SCN2130%Issue1Issue4 Blocked
Folder2SCN220%   Not Started
Folder2SCN2345%Issue4Issue3 Blocked
Folder2SCN245%Issue3  Unblocked
lbendlin
Super User
Super User

I assume the last line in your Execution table is a typo? Should say "CASE242", right?

And in the Issues table the row 

Folder1 SCN15 CASE153

Issue3

has no match in the Execution table. What should be done in such a scenario?

 

Anyway, here are your measures:

 

 

Issues = CONCATENATEX(Issues,Issues[Issues],"")
Status Scenario = SWITCH(TRUE(),count(Issues[Issues])=1,"Unblocked",count(Issues[Issues])>1,"Blocked","Not Started")

lbendlin_0-1622489102706.png

 

 

Hi, thanks for your feedback. Firstable I solved Scenario Status counting using COUNTA DAX, but also used your suggestion using Switch instead of IF DAX, it seems switch is more powerful than IF.

About CONCATENATEX is good suggestion, but not solving at the end, because I am trying to have in different columns the Issues separately per each row, for instance in Folder 1, SCN12 I wanted to have 3 columns (one column for Issue1, other columnd for Issue2 and other for Issue5), same for Folder 2, SCN21 should get 2 different column (one column for Issue1 and other column for Issue4). It means as much Issue columns as quantities of Issues per each row.

Please, could you suggest?

regards 

Hi, 

you are right!!!,: both my mystakes, below I have updated Execution table:

lbendlin
Super User
Super User

Where does the Progress column come from?  It is not mentioned in your original description.

 

What is the relationship of cases to folders and scenarios? Is it a strict hierarchy, or can a case  be assigned to multiple scenarios etc?

Hi,

% of progress column can be different,s, however I put 100% and 0% to see in case completed or not started.

 Relationship of cases to folders and scenarios are strict hierarchy based.

 

regards

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.

Top Solution Authors