User Profile
vivran22
Community Champion
Joined 7 years ago
User Widgets
Contributions
Re: Display latest date
The relative date slicer picks up the latest date as per the system calendar and not in the dataset. What is the latest data point in your model? Can you share sample pbix/data file? Cheers! Vivek Blog: vivran.in/my-blog Connect on LinkedIn Follow on Twitter2KViews0likes0CommentsRe: Display latest date
Hello Anonymous Have you tried the relative date slicer? https://docs.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range Cheers! Vivek If it helps, please mark it as a solution Kudos would be a cherry on the top π (Hit the thumbs up button!) If it doesn't, then please share a sample data along with the expected results (preferably an excel file and not an image) https://www.vivran.in/ Connect on LinkedIn2KViews0likes0CommentsRe: Merging two columns
Hello Anonymous , Where you are appending the tables? Try changing the name of this column in Power Query. Cheers! Vivek If it helps, please mark it as a solution Kudos would be a cherry on the top π (Hit the thumbs up button!) If it doesn't, then please share a sample data along with the expected results (preferably an excel file and not an image) https://www.vivran.in/ Connect on LinkedIn15KViews0likes1CommentRe: How do remove a specific number of digits based on the number of digits in a different column
ThomasWeppler Considering they are number columns, you may also try the following: Extract Num = VAR _Sub = 'Test Table'[Col1] * 10^(LEN('Test Table'[Col2]) - LEN('Test Table'[Col1])) VAR _Diff = 'Test Table'[Col2] - _Sub RETURN _Diff Cheers! Vivek If it helps, please mark it as a solution Kudos would be a cherry on the top π (Hit the thumbs up button!) If it doesn't, then please share a sample data along with the expected results (preferably an excel file and not an image) https://www.vivran.in/ Connect on LinkedIn983Views0likes0CommentsRe: Need Help in visualizing
Hello alalan I do not think you need to create a separate table for the grouping, also the many-to-many relationship may not be helpful for filtering the fact table. Is it possible to share the sample fact data/pbix file? Cheers! Vivek Blog: vivran.in/my-blog Connect on LinkedIn Follow on Twitter1.1KViews0likes1CommentRe: Percentage Change showing incorrectly
Anonymous Mathematically, the correct formula for calculating difference from previous year is: (Cur Year - Prev Year)/Prev Year Based on that, you should modify your formula: % Vic Change = VAR _Num = CALCULATE ( DISTINCTCOUNT ( 'Fact Incident'[Victim ID] ), FILTER ( 'Date', 'Date'[Fiscal Year] = MAX ( 'Date'[Fiscal Year] ) ) ) VAR _Den = CALCULATE ( DISTINCTCOUNT ( 'Fact Incident'[Victim ID] ), FILTER ( 'date', 'Date'[Fiscal Year] = MIN ( 'Date'[Fiscal Year] ) ) ) VAR _PercentChange = IFERROR((_Num-_Den)/_Den ,0) RETURN _PercerntChange Note: You may want to assign appropriate variable names. Cheers! Vivek If it helps, please mark it as a solution Kudos would be a cherry on the top π (Hit the thumbs up button!) If it doesn't, then please share a sample data along with the expected results (preferably an excel file and not an image) https://www.vivran.in/ Connect on LinkedIn1.5KViews1like0CommentsRe: Percentage Change showing incorrectly
Hello Anonymous I believe you need to modify the formula: % Vic Change = VAR _Num = CALCULATE ( DISTINCTCOUNT ( 'Fact Incident'[Victim ID] ), FILTER ( 'Date', 'Date'[Fiscal Year] = MAX ( 'Date'[Fiscal Year] ) ) ) VAR _Den = CALCULATE ( DISTINCTCOUNT ( 'Fact Incident'[Victim ID] ), FILTER ( 'date', 'Date'[Fiscal Year] = MIN ( 'Date'[Fiscal Year] ) ) ) VAR _PercentChange = IFERROR(_Num/_Den - 1,0) RETURN _PercerntChange Cheers! Vivek If it helps, please mark it as a solution Kudos would be a cherry on the top π (Hit the thumbs up button!) If it doesn't, then please share a sample data along with the expected results (preferably an excel file and not an image) https://www.vivran.in/ Connect on LinkedIn1.6KViews0likes2CommentsRe: Count values filtering for latest available value
Hello cecep , Your requirement is not clear to me from the example you have shared. Can you share a sample file/pbix file with the expected outcome as an example? Cheers! Vivek Blog: vivran.in/my-blog Connect on LinkedIn Follow on Twitter975Views0likes1CommentRe: Change column value based on slicer
Hello Pat8 , You may try this: Selected Measure = VAR _PrevMonth = PREVIOUSMONTH('Table'[Month]) VAR _Calc = SELECTEDVALUE('Table'[Amount]) - CALCULATE(SUM('Table'[Amount]),PREVIOUSMONTH('Table'[Month])) VAR _Check = IF(NOT ISBLANK(_PrevMonth),_Calc) RETURN _Check Cheers! Vivek If it helps, please mark it as a solution Kudos would be a cherry on the top π (Hit the thumbs up button!) If it doesn't, then please share a sample data along with the expected results (preferably an excel file and not an image) https://www.vivran.in/ Connect on LinkedIn982Views0likes1Comment
Data Privacy
Microsoft Fabric Community and Privacy
To learn more about how we manage your data, please review the Microsoft Fabric Community Data Privacy guide.