Power BI Model relationship between 2 model going blank when drilled - powerbi

I have a problem with a relationship that is not working correctly.
I have a model in Power BI that pulls in data from 2 other models (Direct Query to the other models, which have imported the data). In both models there is a table called Cost Center (let's call them Cost Center and Cost Center FM, which has a 1-to-1 both direct relationship setup. Then there is a fact table that has a relationship to Cost Center FM.
In the rows of a matrix table I have Cost Center as one of the rows and a measure of a value from the Fact Table. The fact table value is showing up correctly until I drill to the Cost Center row at this point it is going blank.
You can see in the above picture that the 240016 line is expanded, but has nothing underneath it. The 240016 is the Cost Center ID from the fact table and the next row is Cost Center from the Cost Center table.
In the above picture you can see the relationship between the value table (Operations VMA) and the Cost Center FM table.
And in this picture you can see the 1-to-1 relationship between the 2 Cost Center tables.
I cannot figure out why these relationship are not working.

Related

what is the difference between a calculated column and a measure?

Could you please help me understand the conceptual difference?
When do we use one over the other and how they are included in the data model?
Measures, calculated columns and calculated tables all use Data Analysis Expressions (DAX).
Calculated columns work in the horizontal direction of a table
and they add a value to each row of the table that can later be used
for filtering, e.g. on the axis of a diagram.
Measures work in the vertical direction of a table since they aggregate or summarize the values in a column. They are typically the contents of a diagram.
Both calculated columns and tables will add data to the model, just like the M-code in PowerQuery does. This data is recalculated on model refresh and otherwise won't change. In contrast measures add formulas only that will be calulated depending on the filter context.

Power BI: Invert Primary Y-Axis, but not Secondary Y-Axis

In Power BI, I have a chart with a primary and secondary y-axis. I would like the primary axis to be inverted, but the secondary one to remain normal. From what I've researched so far, this doesn't look to be a possibility. As a workaround, I've created a DAX measure so that the field on the secondary axis is multiplied by -1.
My 2 questions are:
Is there a way to invert the primary Y-Axis, but not the secondary?
Can the measure I created as a workaround be manipulated so that even though it is a negative number, the secondary axis labels (and data labels) still show positive values?

Apply drill through to matrix having dynamic axis as its axes in PowerBI

I have a matrix that has a column as a prediction bucket and row is coming from a dynamic axis value. If I drill through to one of the cross-sections of this matrix it shows me all the data falling in the segment of prediction bucket but is not filtering through the dynamic axis value.
For example, I have my rows as tenure bucket and column as prediction bucket and one of its cross-section shows that 8 people fall in that category. I.e., having prediction >75% and have a tenure <3 months. But if I drill through it shows all the people falling in >75% bucket but doesn't filter on the age bucket.
Matrix
Drillthrough
Create a join between all the columns used in Dynamic axis to that table which actually holds those columns.
For eg
Relationship view
as we can see that I have used payment method in the creation of my dynamic axis so I created a relationship from X_AXIS_VALUE to payment method. And it solves my problem.

How to display measure as sub-columns in matrix visual in PowerBI

I want to display 3 measures under all the columns in a matrix visual.
Face amount, Market value are numeric columns in the table.
ConvexityWTD is a measure.
I want to calculate Prior, current and %change measures based on some condition and display them under each of the column.
I am getting the following table by keeping this arrangement:
How can I get it in the required format?

Different color schemes for bars chart in PowerBI

Hi I'm trying to create a Bar Chart like this (This chart is an illustration, not created from data yet):
If the data is being fetched from a single table, how can I have dual color scheme for bar is past and future. Also how can I place a moving marker that automatically updates the TODAY placard based on whenever the report is viewed and accordingly bars should follow the past and future color schemes.
Schema is roughly as follows:
Table1: Issue ID, Release name, issue priority
Table2: Release name, Release date
In Power BI as well as in Excel, the secret is in the data layout. You can't just have all your past and future data in two columns and magically expect that some of them will turn out red and orange instead of dark and light gray.
You will need to prep your data source to include stacked series for the light gray, dark gray, red and orange series. Stack all series on top of each other and make sure that where the red and orange series have values, there are only zero values for the gray series.
I suggest you use four columns for four stacked series and divide the values accordingly.
In Power BI, you can apply the same principle as in this Excel screenshot.
Let me know if you need help translating that to Power BI.
Edit: The Power BI data does not have to be static. You can build columns with Dax functions that arrange the data in the pattern required. Add four columns to your data model with the formulas
chtPastProdA = if(tblProducts[Date]<TODAY(),tblProducts[Product A],0)
chtPastProdB = if(tblProducts[Date]<today(),tblProducts[Product B],0)
chtFutureProdA = if(tblProducts[Date]>=today(),tblProducts[Product A],0)
chtFutureProdB = if(tblProducts[Date]>=today(),tblProducts[Product B],0)
Then build a stacked column chart and stack all four of these series. Format the colors.
For the "Today" marker you would need a custom label, which Power BI currently does not support. But since the demarcation between gray and red/yellow is today, it's quite obvious where the current date is, anyway.